mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
stop destination's thread before cleanup
This commit is contained in:
parent
ea9c69cd53
commit
df787060c3
@ -180,6 +180,7 @@ namespace client
|
|||||||
i2p::tunnel::tunnels.StopTunnelPool (m_Pool);
|
i2p::tunnel::tunnels.StopTunnelPool (m_Pool);
|
||||||
}
|
}
|
||||||
SaveTags ();
|
SaveTags ();
|
||||||
|
m_Service.stop (); // make sure we don't process more messages after this point. TODO: implement it better
|
||||||
CleanUp (); // GarlicDestination
|
CleanUp (); // GarlicDestination
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ namespace i2p
|
|||||||
if (m_CongestionUpdateTimer)
|
if (m_CongestionUpdateTimer)
|
||||||
m_CongestionUpdateTimer->cancel ();
|
m_CongestionUpdateTimer->cancel ();
|
||||||
m_Service->Stop ();
|
m_Service->Stop ();
|
||||||
|
CleanUp (); // GarlicDestination
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user