From 968139022eb5a4e8b7dfa00e170afd4714968dee Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 30 Mar 2016 11:27:21 -1000 Subject: [PATCH] Client process worker loop tweak --- hecl/lib/ClientProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/lib/ClientProcess.cpp b/hecl/lib/ClientProcess.cpp index 09beac56a..2c6dc84f8 100644 --- a/hecl/lib/ClientProcess.cpp +++ b/hecl/lib/ClientProcess.cpp @@ -57,7 +57,7 @@ void ClientProcess::Worker::proc() while (m_proc.m_running) { std::unique_lock lk(m_proc.m_mutex); - if (m_proc.m_pendingQueue.size()) + while (m_proc.m_pendingQueue.size()) { std::unique_ptr trans = std::move(m_proc.m_pendingQueue.front()); m_proc.m_pendingQueue.pop_front();