ido: Fix timeperioddbobject lock.

This commit is contained in:
Michael Friedrich 2013-09-12 10:30:28 +02:00
parent 5ce38cbee6
commit 66d00d25bc
1 changed files with 1 additions and 0 deletions

View 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");