1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

fixed crash on termination

This commit is contained in:
orignal 2020-03-05 18:44:15 -05:00
parent 51d018acc6
commit dd9b5faa5c

View File

@ -814,8 +814,11 @@ namespace client
{
m_IsRunning = false;
m_Acceptor.cancel ();
for (auto& it: m_Sessions)
it.second->Stop ();
{
auto sessions = m_Sessions;
for (auto& it: sessions)
it.second->Stop ();
}
m_Sessions.clear ();
m_Service.stop ();
if (m_Thread)