Skip to content

Commit

Permalink
Don't emit timeout() signal with lock held.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Jun 22, 2012
1 parent 14ad67e commit bbe7b2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/libs/libmythbase/mythsignalingtimer.cpp
Expand Up @@ -76,9 +76,13 @@ void MythSignalingTimer::run(void)
RunProlog();
while (dorun)
{
QMutexLocker lock(&startStopLock);
if (dorun && !timerWait.wait(lock.mutex(), millisec))
QMutexLocker locker(&startStopLock);
if (dorun && !timerWait.wait(locker.mutex(), millisec))
{
locker.unlock();
emit timeout();
locker.relock();
}
}
RunEpilog();
running = false;
Expand Down

0 comments on commit bbe7b2a

Please sign in to comment.