Fix: Pending services are being checked with the retry interval.

Fixes #5716
This commit is contained in:
Gunnar Beutner 2014-03-06 11:39:32 +01:00
parent f8a2ddc464
commit 7e690cc7b8
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ void Service::ProcessCheckResult(const CheckResult::Ptr& cr, const String& autho
long attempt;
if (cr->GetState() == StateOK) {
if (!old_cr) {
SetStateType(StateTypeHard);
} else if (cr->GetState() == StateOK) {
if (old_state == StateOK && old_stateType == StateTypeSoft)
SetStateType(StateTypeHard); // SOFT OK -> HARD OK