]> granicus.if.org Git - icinga2/commitdiff
Bugfix for triggered downtimes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 9 Feb 2013 14:22:46 +0000 (15:22 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 9 Feb 2013 14:22:46 +0000 (15:22 +0100)
lib/icinga/service.cpp

index a97a18442acc77e4da2febea8c1045cda6c6ea7e..1a65de6f2eabb8a3017e21ec9830b0cb407e9c6b 100644 (file)
@@ -553,11 +553,11 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
                        if (service)
                                service->SetNextCheck(Utility::GetTime());
                }
-
-               if (GetState() != StateOK)
-                       TriggerDowntimes();
        }
 
+       if (GetState() != StateOK)
+               TriggerDowntimes();
+
        if (GetStateType() == StateTypeHard && (old_state != GetState() || old_stateType == StateTypeSoft)) {
                SetLastHardStateChange(now);