mirror of https://github.com/Icinga/icinga2.git
ido: Fix timeperioddbobject lock.
This commit is contained in:
parent
5ce38cbee6
commit
66d00d25bc
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue