Skip to content

Commit

Permalink
Fix the logServerWait to exit if wait() is woken up
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Jul 1, 2012
1 parent d92b6d4 commit aa93d3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythbase/loggingserver.cpp
Expand Up @@ -989,9 +989,9 @@ void logServerWait(void)
{
// cerr << "waiting" << endl;
QMutexLocker locker(&logThreadStartedMutex);
while (!logThreadStarting ||
(logServerThread && logServerThread->isRunning()))
logThreadStarted.wait(locker.mutex(), 100);
while ((!logThreadStarting ||
(logServerThread && logServerThread->isRunning())) &&
!logThreadStarted.wait(locker.mutex(), 100));
locker.unlock();
// cerr << "done waiting" << endl;
}
Expand Down

0 comments on commit aa93d3f

Please sign in to comment.