mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
p2p: reorder shutdown sequence to reduce lag on CTRL-C
This commit is contained in:
@@ -160,10 +160,10 @@ impl P2p {
|
||||
/// Stop the running P2P subsystem
|
||||
pub async fn stop(&self) {
|
||||
// Stop the sessions
|
||||
self.session_refine().stop().await;
|
||||
self.session_manual().stop().await;
|
||||
self.session_inbound().stop().await;
|
||||
self.session_outbound().stop().await;
|
||||
self.session_refine().stop().await;
|
||||
}
|
||||
|
||||
/// Broadcasts a message concurrently across all active channels.
|
||||
|
||||
Reference in New Issue
Block a user