more race condition cleanup

This commit is contained in:
Christien Rioux 2024-05-21 14:09:08 -04:00
parent 908bb48f8c
commit 23d160a525

View File

@ -910,6 +910,8 @@ impl Network {
pub async fn shutdown(&self) {
log_net!(debug "starting low level network shutdown");
self.inner.lock().network_started = None;
let routing_table = self.routing_table();
// Stop all tasks