Fix crash in ScheduledDowntime::TimerProc

fixes #11352
This commit is contained in:
Gunnar Beutner 2016-03-14 08:37:13 +01:00
parent 4746b214d6
commit a8ee6b2009

View File

@ -106,7 +106,8 @@ void ScheduledDowntime::Start(bool runtimeCreated)
void ScheduledDowntime::TimerProc(void) void ScheduledDowntime::TimerProc(void)
{ {
BOOST_FOREACH(const ScheduledDowntime::Ptr& sd, ConfigType::GetObjectsByType<ScheduledDowntime>()) { BOOST_FOREACH(const ScheduledDowntime::Ptr& sd, ConfigType::GetObjectsByType<ScheduledDowntime>()) {
sd->CreateNextDowntime(); if (sd->IsActive())
sd->CreateNextDowntime();
} }
} }