diff --git a/Source/Core/Common/WorkQueueThread.h b/Source/Core/Common/WorkQueueThread.h index f7eb06f82f..be3c3198d4 100644 --- a/Source/Core/Common/WorkQueueThread.h +++ b/Source/Core/Common/WorkQueueThread.h @@ -147,7 +147,7 @@ private: return; m_worker_cond_var.wait( - lg, [&] { return m_shutdown || m_cancelling.load() || !m_items.empty(); }); + lg, [&] { return !m_items.empty() || m_shutdown || m_cancelling.load(); }); } T item{std::move(m_items.front())}; m_items.pop();