diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 22299a01..2b2598e1 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -80,8 +80,8 @@ void CEventManager::startThread() { eventQueueMutex.lock(); if (m_dQueuedEvents.empty()){ // if queue empty, sleep and ignore - std::this_thread::sleep_for(std::chrono::milliseconds(1)); eventQueueMutex.unlock(); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; }