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

correct DH keys number to precalculate

This commit is contained in:
orignal 2016-11-07 12:29:24 -05:00
parent 0a94df592c
commit bd82e81e26

View File

@ -49,7 +49,7 @@ namespace transport
while (m_IsRunning)
{
int num;
while ((num = m_QueueSize - m_Queue.size ()) > 0)
while ((num = m_QueueSize - (int)m_Queue.size ()) > 0)
CreateDHKeysPairs (num);
std::unique_lock<std::mutex> l(m_AcquiredMutex);
m_Acquired.wait (l); // wait for element gets aquired