Browse Source
Merge pull request #9569 from liamwhite/shutdown-wars
qt: additional fixes for reentrant shutdown
pull/15/merge
Morph
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
3 deletions
-
src/yuzu/main.cpp
|
|
|
@ -1839,9 +1839,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(); |
|
|
|
@ -3029,6 +3031,8 @@ void GMainWindow::OnStopGame() { |
|
|
|
|
|
|
|
if (OnShutdownBegin()) { |
|
|
|
OnShutdownBeginDialog(); |
|
|
|
} else { |
|
|
|
OnEmulationStopped(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|