early-access version 3297

This commit is contained in:
pineappleEA
2023-01-07 19:23:45 +01:00
parent ec5ff6b829
commit be79968945
5 changed files with 29 additions and 7 deletions
+7 -3
View File
@@ -1838,9 +1838,11 @@ void GMainWindow::OnEmulationStopTimeExpired() {
void GMainWindow::OnEmulationStopped() {
shutdown_timer.stop();
emu_thread->disconnect();
emu_thread->wait();
emu_thread = nullptr;
if (emu_thread) {
emu_thread->disconnect();
emu_thread->wait();
emu_thread.reset();
}
if (shutdown_dialog) {
shutdown_dialog->deleteLater();
@@ -3028,6 +3030,8 @@ void GMainWindow::OnStopGame() {
if (OnShutdownBegin()) {
OnShutdownBeginDialog();
} else {
OnEmulationStopped();
}
}