mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
Next try
This commit is contained in:
parent
b334c462c2
commit
6b1666d51d
|
@ -34,14 +34,14 @@ void FifoConsole::ListenFifoThread(void *pUser)
|
||||||
{
|
{
|
||||||
FifoConsole *pData = (FifoConsole *)pUser;
|
FifoConsole *pData = (FifoConsole *)pUser;
|
||||||
|
|
||||||
|
if(stopFifoThread)
|
||||||
|
return;
|
||||||
|
|
||||||
// This should fix the problem where sometimes the fifo thread runs at a bad
|
// This should fix the problem where sometimes the fifo thread runs at a bad
|
||||||
// time and can't open the fifo immediately.
|
// time and can't open the fifo immediately.
|
||||||
while (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0)
|
while (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0)
|
||||||
{
|
{
|
||||||
thread_sleep(1000);
|
thread_sleep(1000);
|
||||||
|
|
||||||
if(stopFifoThread)
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mkfifo(pData->m_pFifoFile, 0600);
|
mkfifo(pData->m_pFifoFile, 0600);
|
||||||
|
|
Loading…
Reference in a new issue