diff options
author | Liam <byteslice@airmail.cc> | 2022-12-12 21:38:20 -0500 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-12 21:38:20 -0500 |
commit | 179adee396e6b8480d52be5314979830beebfbc1 (patch) | |
tree | a0cbfaf66a546f3717db1c3090af39d909f9800c /src/yuzu/bootmanager.h | |
parent | f44c60321ec767b6e881160d4960345d678edf78 (diff) |
emu_thread: properly force shutdown for unresponsive guest programs
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r-- | src/yuzu/bootmanager.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h index c2b127f19..f0edad6e4 100644 --- a/src/yuzu/bootmanager.h +++ b/src/yuzu/bootmanager.h @@ -11,7 +11,6 @@ #include <QImage> #include <QStringList> #include <QThread> -#include <QTimer> #include <QTouchEvent> #include <QWidget> @@ -85,17 +84,9 @@ public: } /** - * Requests for the emulation thread to stop running + * Requests for the emulation thread to immediately stop running */ - void RequestStop() { - QTimer::singleShot(5000, this, &EmuThread::ForceStop); - } - -private slots: void ForceStop() { - if (!IsRunning()) { - return; - } LOG_WARNING(Frontend, "Force stopping EmuThread"); stop_source.request_stop(); SetRunning(false); |