mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
In dc_maybe_network_lost() directly set the connectivity "Not connected" (#2551)
* In dc_maybe_network_lost() directly set the connectivity "Not connected" r10s reported that without doing this, the connectivity would stay at "Connected" for 16 more seconds after network is gone and dc_maybe_network_lost() was called. * Set the state for all connections
This commit is contained in:
@@ -48,7 +48,7 @@ impl Context {
|
||||
pub async fn maybe_network_lost(&self) {
|
||||
let lock = self.scheduler.read().await;
|
||||
lock.maybe_network_lost().await;
|
||||
connectivity::idle_interrupted(lock).await;
|
||||
connectivity::maybe_network_lost(self, lock).await;
|
||||
}
|
||||
|
||||
pub(crate) async fn interrupt_inbox(&self, info: InterruptInfo) {
|
||||
|
||||
Reference in New Issue
Block a user