Browse Source

correct DH keys number to precalculate

pull/701/head
orignal 8 years ago
parent
commit
bd82e81e26
  1. 2
      Transports.cpp

2
Transports.cpp

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

Loading…
Cancel
Save