From a8ee6b2009781e7e567bd888e49dc98f5249b7e7 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 14 Mar 2016 08:37:13 +0100 Subject: [PATCH] Fix crash in ScheduledDowntime::TimerProc fixes #11352 --- lib/icinga/scheduleddowntime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } }