stop destination's thread before cleanup

This commit is contained in:
orignal 2024-06-30 11:40:35 -04:00
parent ea9c69cd53
commit df787060c3
2 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,7 @@ namespace client
i2p::tunnel::tunnels.StopTunnelPool (m_Pool);
}
SaveTags ();
m_Service.stop (); // make sure we don't process more messages after this point. TODO: implement it better
CleanUp (); // GarlicDestination
}

View File

@ -75,6 +75,7 @@ namespace i2p
if (m_CongestionUpdateTimer)
m_CongestionUpdateTimer->cancel ();
m_Service->Stop ();
CleanUp (); // GarlicDestination
}
}