Merge pull request #8891 from Icinga/bugfix/trigger-fixed-downtimes-immediately-211

Downtime#Start(): trigger fixed downtimes immediately instead of waiting for the timer
This commit is contained in:
Julian Brost 2021-07-08 15:33:52 +02:00 committed by GitHub
commit 58be537557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,14 @@ void Downtime::Start(bool runtimeCreated)
<< " Triggering downtime now.";
TriggerDowntime();
}
if (GetFixed() && CanBeTriggered()) {
/* Send notifications. */
OnDowntimeStarted(this);
/* Trigger fixed downtime immediately. */
TriggerDowntime();
}
}
void Downtime::Stop(bool runtimeRemoved)