Bug fix: missing lock for TimePeriod::PurgeSegments call.

This commit is contained in:
Gunnar Beutner 2013-03-14 12:21:10 +01:00
parent 07421751ad
commit 2a2e2ca4e6
1 changed files with 4 additions and 1 deletions

View File

@ -255,7 +255,10 @@ void TimePeriod::UpdateTimerHandler(void)
if (!ConfigItem::GetObject("TimePeriod", tp->GetName()))
continue;
{
ObjectLock olock(tp);
tp->PurgeSegments(now - 3600);
}
if (tp->m_ValidEnd < now + 3 * 3600)
tp->UpdateRegion(tp->m_ValidEnd, tp->m_ValidEnd + 24 * 3600);