mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +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);
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
|
|
||||||
while (m_Events.empty()) {
|
while (m_Events.empty()) {
|
||||||
if (!m_EventAvailable.timed_wait(lock, timeout))
|
if (!m_EventAvailable.timed_wait(lock, timeout)) {
|
||||||
|
Application::GetMutex().lock();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
events.swap(m_Events);
|
events.swap(m_Events);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user