stop netdb tread immediately on termination

This commit is contained in:
orignal 2014-09-23 12:02:32 -04:00
parent 610e9e3660
commit f30a466bec

View File

@ -87,6 +87,7 @@ namespace data
if (m_Thread)
{
m_IsRunning = false;
m_Queue.WakeUp ();
m_Thread->join ();
delete m_Thread;
m_Thread = 0;
@ -128,8 +129,10 @@ namespace data
msg = m_Queue.Get ();
}
}
else // if no new DatabaseStore coming, explore it
else
{
if (!m_IsRunning) break;
// if no new DatabaseStore coming, explore it
auto numRouters = m_RouterInfos.size ();
Explore (numRouters < 1500 ? 5 : 1);
}