fix crash on detach

This commit is contained in:
Christien Rioux 2024-07-09 15:22:14 -04:00
parent 1048fc6bb9
commit b747147152

View File

@ -234,5 +234,9 @@ impl RoutingTable {
{
warn!("private_route_management_task not stopped: {}", e);
}
log_rtab!(debug "stopping closest peers refresh task");
if let Err(e) = self.unlocked_inner.closest_peers_refresh_task.stop().await {
warn!("closest_peers_refresh_task not stopped: {}", e);
}
}
}