mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
Client process worker loop tweak
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user