Browse files

Fix the detection of mythlogserver running

You gotta actually process events to receive signals.  Duh.
  • Loading branch information...
1 parent 0dfdee4 commit 38da9df0d68b2cc908602a4c2aef1dea1c7a3e84 @Beirdo Beirdo committed Apr 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/libs/libmythbase/logging.cpp
View
3 mythtv/libs/libmythbase/logging.cpp
@@ -283,7 +283,8 @@ void LoggerThread::run(void)
m_initialWaiting = true;
m_zmqSocket->sendMessage(QByteArray(""));
- msleep(100); // wait up to 100ms for mythlogserver to respond
+ // wait up to 100ms for mythlogserver to respond
+ qApp->processEvents(QEventLoop::WaitForMoreEvents, 100);
if (m_initialWaiting && !locallogs)
{
// Got no response from mythlogserver, let's assume it's dead and

0 comments on commit 38da9df

Please sign in to comment.