1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

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

Fixes 
This commit is contained in:
Gunnar Beutner 2014-03-06 11:39:32 +01:00
parent f8a2ddc464
commit 7e690cc7b8

@ -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