]> granicus.if.org Git - icinga2/commitdiff
ido: Fix timeperioddbobject lock.
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 12 Sep 2013 08:30:28 +0000 (10:30 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 12 Sep 2013 08:30:28 +0000 (10:30 +0200)
lib/ido/timeperioddbobject.cpp

index 9037305ea4f0878585e50a69d2601ac88d4a7439..20c1c8752ac8997d1414ced63f3314984b58e6f1 100644 (file)
@@ -100,6 +100,7 @@ void TimePeriodDbObject::OnConfigUpdate(void)
                Array::Ptr segments = boost::make_shared<Array>();
                LegacyTimePeriod::ProcessTimeRanges(value, &reference, segments);
 
+               ObjectLock olock(segments);
                BOOST_FOREACH(const Value& vsegment, segments) {
                        Dictionary::Ptr segment = vsegment;
                        int begin = segment->Get("begin");