mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 17:50:13 +01:00
pcsx2:gui: fix potential infinite loop
This commit is contained in:
1 parent
0422854384
commit
fc67e372d2
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user