diff --git a/lib/icinga/checkable-notification.cpp b/lib/icinga/checkable-notification.cpp index ac7761652..a9c804a7a 100644 --- a/lib/icinga/checkable-notification.cpp +++ b/lib/icinga/checkable-notification.cpp @@ -48,14 +48,14 @@ void Checkable::SendNotifications(NotificationType type, const CheckResult::Ptr& bool force = GetForceNextNotification(); + SetForceNextNotification(false); + if (!IcingaApplication::GetInstance()->GetEnableNotifications() || !GetEnableNotifications()) { if (!force) { Log(LogInformation, "Checkable") << "Notifications are disabled for service '" << GetName() << "'."; return; } - - SetForceNextNotification(false); } Log(LogInformation, "Checkable")