Bug fix: Continue executing checks even if the first matching service is disabled.

This commit is contained in:
Gunnar Beutner 2013-01-24 11:07:37 +01:00
parent db6c89bc58
commit 7447d340cc
1 changed files with 3 additions and 1 deletions

View File

@ -74,11 +74,13 @@ void CheckerComponent::CheckTimerHandler(void)
* for it and this is not a forced check */
if (!service->GetEnableChecks()) {
if (!service->GetForceNextCheck()) {
Logger::Write(LogDebug, "checker", "Ignoring service check for disabled service: " + service->GetName());
service->UpdateNextCheck();
idx.insert(service);
return;
continue;
}
service->SetForceNextCheck(false);