mirror of https://github.com/Icinga/icinga2.git
Fix deadlock in WorkQueue::Join().
This commit is contained in:
parent
492aed030e
commit
65f4176fa8
|
@ -62,6 +62,8 @@ void WorkQueue::Join(void)
|
|||
{
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
m_Joined = true;
|
||||
m_CV.notify_all();
|
||||
|
||||
while (!m_Stopped)
|
||||
m_CV.wait(lock);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue