Improve shutdown when program have terminated

Still crashes or deadlocks later on
This commit is contained in:
v1993
2021-09-26 00:09:22 +03:00
parent 76d05c6310
commit a16cef57ff

View File

@@ -115,7 +115,9 @@ void EmuThread::run() {
}
// Shutdown the core emulation
system.Shutdown();
if (system.IsPoweredOn()) {
system.Shutdown();
}
#if MICROPROFILE_ENABLED
MicroProfileOnThreadExit();