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:
Hocuri
2021-08-09 17:25:34 +02:00
committed by GitHub
parent faab61b0d4
commit 481276cf46
2 changed files with 39 additions and 2 deletions

View File

@@ -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) {