diff --git a/pcsx2/gui/ConsoleLogger.cpp b/pcsx2/gui/ConsoleLogger.cpp index 49be2af769..58f631a68d 100644 --- a/pcsx2/gui/ConsoleLogger.cpp +++ b/pcsx2/gui/ConsoleLogger.cpp @@ -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;