Improve shutdown when program have terminated
Still crashes or deadlocks later on
This commit is contained in:
@@ -115,7 +115,9 @@ void EmuThread::run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Shutdown the core emulation
|
// Shutdown the core emulation
|
||||||
system.Shutdown();
|
if (system.IsPoweredOn()) {
|
||||||
|
system.Shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
#if MICROPROFILE_ENABLED
|
#if MICROPROFILE_ENABLED
|
||||||
MicroProfileOnThreadExit();
|
MicroProfileOnThreadExit();
|
||||||
|
|||||||
Reference in New Issue
Block a user