Fire Checkable::OnFlappingChange only if flapping is enabled

refs #7885
This commit is contained in:
Alexander A. Klimov 2020-03-04 14:58:32 +01:00
parent cef4c46ba8
commit 0e24462064
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ void Checkable::UpdateFlappingStatus(bool stateChange)
double ee = GetLastCheckResult()->GetExecutionEnd();
if (GetEnableFlapping() && IcingaApplication::GetInstance()->GetEnableFlapping()) {
OnFlappingChange(this, ee);
}
SetFlappingLastChange(ee);
}