Checkable::NotifyDowntimeEnd(): don't send Downtime end notification unless triggered

... for fixed Downtimes as well.
This commit is contained in:
Alexander A. Klimov 2021-07-06 12:50:44 +02:00
parent 2fd8e13ebf
commit 0cca93543c

View File

@ -232,8 +232,8 @@ void Checkable::NotifyDowntimeInternal(const Downtime::Ptr& downtime)
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
{
/* don't send notifications for flexible downtimes which never triggered */
if (!downtime->GetFixed() && !downtime->IsTriggered())
/* don't send notifications for downtimes which never triggered */
if (!downtime->IsTriggered())
return;
Checkable::Ptr checkable = downtime->GetCheckable();