Fix issue 5022

This commit is contained in:
Jordi van Scheijen 2017-06-22 12:31:32 +02:00 committed by Michael Friedrich
parent 87e5f89a83
commit bc1dc9c7a7
1 changed files with 7 additions and 2 deletions

View File

@ -260,8 +260,13 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
if (parent.get() == this)
continue;
ObjectLock olock(parent);
parent->SetNextCheck(Utility::GetTime());
if (!parent->GetEnableActiveChecks())
continue;
if (parent->GetNextCheck() >= now + parent->GetRetryInterval()) {
ObjectLock olock(parent);
parent->SetNextCheck(now);
}
}
}