mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix possible race when shutting down (Mac)
This commit is contained in:
parent
deeda519b0
commit
344c918b65
|
@ -723,7 +723,7 @@ bool MainWindow::requestShutdown(bool allow_confirm /* = true */, bool allow_sav
|
|||
if (block_until_done || QtHost::InBatchMode())
|
||||
{
|
||||
// we need to yield here, since the display gets destroyed
|
||||
while (VMManager::HasValidVM())
|
||||
while (VMManager::GetState() != VMState::Shutdown)
|
||||
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue