Keep retrying for FifoFile even if it's temporarily unavailable

This commit is contained in:
def 2014-11-26 21:17:00 +01:00
parent 9d3cb79db5
commit 8fdd6da926

View file

@ -23,8 +23,8 @@ void FifoConsole::ListenFifoThread(void *pUser)
{
FifoConsole *pData = (FifoConsole *)pUser;
if (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0)
return;
while (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0)
thread_sleep(1000);
mkfifo(pData->m_pFifoFile, 0600);