fixed one-shot timer and maufunction of long start interval

This commit is contained in:
Kontinuation 2014-12-04 02:44:33 +08:00
parent 755c31a4fd
commit fe86370c34

View File

@ -184,7 +184,7 @@ void Timer::run()
}
while (sleep < 0);
if (_wakeUp.tryWait(sleep > _periodicInterval ? _periodicInterval : sleep))
if (_wakeUp.tryWait(sleep))
{
Poco::FastMutex::ScopedLock lock(_mutex);
_nextInvocation.update();