From: Gunnar Beutner Date: Mon, 14 Mar 2016 07:37:13 +0000 (+0100) Subject: Fix crash in ScheduledDowntime::TimerProc X-Git-Tag: v2.4.4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c7b5f710f94bbfd56db6646b2a8f05666124161;p=icinga2 Fix crash in ScheduledDowntime::TimerProc fixes #11352 --- diff --git a/lib/icinga/scheduleddowntime.cpp b/lib/icinga/scheduleddowntime.cpp index 75b2d0578..c67bb10b3 100644 --- a/lib/icinga/scheduleddowntime.cpp +++ b/lib/icinga/scheduleddowntime.cpp @@ -106,7 +106,8 @@ void ScheduledDowntime::Start(bool runtimeCreated) void ScheduledDowntime::TimerProc(void) { BOOST_FOREACH(const ScheduledDowntime::Ptr& sd, ConfigType::GetObjectsByType()) { - sd->CreateNextDowntime(); + if (sd->IsActive()) + sd->CreateNextDowntime(); } }