mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
fix idle interrupts
This commit is contained in:
@@ -366,7 +366,8 @@ impl ConnectionState {
|
||||
}
|
||||
|
||||
async fn interrupt(&self) {
|
||||
self.idle_interrupt_sender.send(()).await;
|
||||
// Use try_send to avoid blocking on interrupts.
|
||||
self.idle_interrupt_sender.try_send(()).ok();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user