diff options
Diffstat (limited to 'filamento/src/logic/abort.rs')
-rw-r--r-- | filamento/src/logic/abort.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/filamento/src/logic/abort.rs b/filamento/src/logic/abort.rs index 32c4823..df82655 100644 --- a/filamento/src/logic/abort.rs +++ b/filamento/src/logic/abort.rs @@ -3,8 +3,5 @@ use lampada::error::ReadError; use super::ClientLogic; pub async fn on_abort(logic: ClientLogic) { - let mut iqs = logic.pending().lock().await; - for (_id, sender) in iqs.drain() { - let _ = sender.send(Err(ReadError::LostConnection)); - } + logic.pending().drain().await; } |