From: Gunnar Beutner Date: Mon, 14 Mar 2016 07:37:13 +0000 (+0100) Subject: Fix crash in ScheduledDowntime::TimerProc X-Git-Tag: v2.5.0~483 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8ee6b2009781e7e567bd888e49dc98f5249b7e7;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(); } }