]> granicus.if.org Git - icinga2/commitdiff
Fix check scheduling w/ retry_interval
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 20 Jan 2016 15:22:23 +0000 (16:22 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 20 Jan 2016 15:29:01 +0000 (16:29 +0100)
fixes #7287

lib/icinga/checkable-check.cpp

index 0143f6a022925ef352d8a1795fc4e28a2e87378f..6272153a928a7fcc3045e15f6543c05d5c2f8a65 100644 (file)
@@ -311,6 +311,9 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
                UpdateFlappingStatus(stateChange);
        is_flapping = IsFlapping();
 
+       /* update next check time on possible state changes */
+       UpdateNextCheck();
+
        olock.Unlock();
 
 //     Log(LogDebug, "Checkable")