Client process worker loop tweak

This commit is contained in:
Jack Andersen 2016-03-30 11:27:21 -10:00
parent 6c0285bdda
commit 968139022e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ void ClientProcess::Worker::proc()
while (m_proc.m_running)
{
std::unique_lock<std::mutex> lk(m_proc.m_mutex);
if (m_proc.m_pendingQueue.size())
while (m_proc.m_pendingQueue.size())
{
std::unique_ptr<Transaction> trans = std::move(m_proc.m_pendingQueue.front());
m_proc.m_pendingQueue.pop_front();