mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Added missing lock() call.
This commit is contained in:
parent
8f2ce8e703
commit
8e672167dc
@ -52,8 +52,11 @@ void Event::ProcessEvents(millisec timeout)
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
|
||||
while (m_Events.empty()) {
|
||||
if (!m_EventAvailable.timed_wait(lock, timeout))
|
||||
if (!m_EventAvailable.timed_wait(lock, timeout)) {
|
||||
Application::GetMutex().lock();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
events.swap(m_Events);
|
||||
|
Loading…
x
Reference in New Issue
Block a user