mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
refactor: remove explicit lock drop at the end of scope
This commit is contained in:
@@ -241,7 +241,6 @@ pub(crate) async fn maybe_network_lost(context: &Context, stores: Vec<Connectivi
|
|||||||
) {
|
) {
|
||||||
*connectivity_lock = DetailedConnectivity::Error("Connection lost".to_string());
|
*connectivity_lock = DetailedConnectivity::Error("Connection lost".to_string());
|
||||||
}
|
}
|
||||||
drop(connectivity_lock);
|
|
||||||
}
|
}
|
||||||
context.emit_event(EventType::ConnectivityChanged);
|
context.emit_event(EventType::ConnectivityChanged);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user