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)
i2p::tunnel::tunnels.StopTunnelPool (m_Pool);
m_IsRunning = false;
m_Service->stop ();
if (m_Service)
m_Service->stop ();
if (m_Thread)
{
m_Thread->join ();