Merge pull request #8562 from Icinga/bugfix/fix-no-renotification-for-non-ok-state-changes-8545

Fix no re-notification for non OK state changes with time delay
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-01-14 17:49:29 +01:00 committed by GitHub
commit c549a6657e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -287,6 +287,12 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
*/
SetNextNotification(checkable->GetLastHardStateChange() + timesBegin + 1.0);
/*
* We need to set no more notifications to false, in case
* some notifications were sent previously
*/
SetNoMoreNotifications(false);
return;
}