mirror of https://github.com/PCSX2/pcsx2.git
pcsx2:gui: fix potential infinite loop
This commit is contained in:
parent
0422854384
commit
fc67e372d2
|
@ -948,7 +948,10 @@ void ConsoleLogFrame::DoFlushEvent( bool isPending )
|
|||
} while( --m_WaitingThreadsForFlush > 0 );
|
||||
|
||||
int count = m_sem_QueueFlushed.Count();
|
||||
while( count < 0 ) m_sem_QueueFlushed.Post();
|
||||
while( count < 0 ) {
|
||||
m_sem_QueueFlushed.Post();
|
||||
count = m_sem_QueueFlushed.Count();
|
||||
}
|
||||
}
|
||||
|
||||
m_pendingFlushMsg = isPending;
|
||||
|
|
Loading…
Reference in New Issue