pcsx2:gui: fix potential infinite loop

This commit is contained in:
Gregory Hainaut 2015-09-11 21:01:23 +02:00
parent 0422854384
commit fc67e372d2
1 changed files with 4 additions and 1 deletions

View File

@ -948,7 +948,10 @@ void ConsoleLogFrame::DoFlushEvent( bool isPending )
} while( --m_WaitingThreadsForFlush > 0 ); } while( --m_WaitingThreadsForFlush > 0 );
int count = m_sem_QueueFlushed.Count(); 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; m_pendingFlushMsg = isPending;