Fix deadlock when rescheduling checks.

Fixes #5092
This commit is contained in:
Gunnar Beutner 2013-11-28 20:55:10 +01:00
parent 1dbd689f9c
commit 48569b6205
1 changed files with 4 additions and 1 deletions

View File

@ -121,9 +121,12 @@ void CheckerComponent::CheckThreadProc(void)
/* reschedule the service if checks are disabled */ /* reschedule the service if checks are disabled */
if (!check) { if (!check) {
m_IdleServices.insert(service);
lock.unlock();
service->UpdateNextCheck(); service->UpdateNextCheck();
m_IdleServices.insert(service); lock.lock();
continue; continue;
} }