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

fixed race condition

This commit is contained in:
orignal 2014-10-13 12:35:44 -04:00
parent b74f3a1ee1
commit 3153cf4df6

View File

@ -108,7 +108,8 @@ namespace stream
if (m_Pool) if (m_Pool)
i2p::tunnel::tunnels.StopTunnelPool (m_Pool); i2p::tunnel::tunnels.StopTunnelPool (m_Pool);
m_IsRunning = false; m_IsRunning = false;
m_Service->stop (); if (m_Service)
m_Service->stop ();
if (m_Thread) if (m_Thread)
{ {
m_Thread->join (); m_Thread->join ();