diff --git a/src/engine/shared/fifoconsole.cpp b/src/engine/shared/fifoconsole.cpp index ab5c0bb22..a7da7498b 100644 --- a/src/engine/shared/fifoconsole.cpp +++ b/src/engine/shared/fifoconsole.cpp @@ -34,14 +34,14 @@ void FifoConsole::ListenFifoThread(void *pUser) { FifoConsole *pData = (FifoConsole *)pUser; + if(stopFifoThread) + return; + // This should fix the problem where sometimes the fifo thread runs at a bad // time and can't open the fifo immediately. while (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0) { thread_sleep(1000); - - if(stopFifoThread) - return; } mkfifo(pData->m_pFifoFile, 0600);