Permalink
Browse files

Don't emit timeout() signal with lock held.

  • Loading branch information...
1 parent 14ad67e commit bbe7b2a2d6288d56fed417d43e1f70888bfdad1f @daniel-kristjansson daniel-kristjansson committed Jun 22, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 mythtv/libs/libmythbase/mythsignalingtimer.cpp
@@ -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;

0 comments on commit bbe7b2a

Please sign in to comment.