diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 06413a4c5..804eb235c 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -348,9 +348,9 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe { ObjectLock olock(this); + UpdateNotificationNumber(); double now = Utility::GetTime(); SetLastNotification(now); - if (type == NotificationProblem) SetLastProblemNotification(now); } @@ -365,12 +365,6 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe std::copy(members.begin(), members.end(), std::inserter(allUsers, allUsers.begin())); } - { - ObjectLock olock(this); - UpdateNotificationNumber(); - SetLastNotification(Utility::GetTime()); - } - std::set allNotifiedUsers; Array::Ptr notifiedUsers = GetNotifiedUsers();