From 930a0bfb6bbcb63d4ddb6338bd2f3f4f276c6efb Mon Sep 17 00:00:00 2001 From: Tuna Celik Date: Thu, 29 Jan 2026 13:35:50 +0100 Subject: [PATCH] refactored --- rpcs3/Emu/System.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 9d780e6c4d..b204cc38b9 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -3393,7 +3393,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s bool is_being_held_longer = false; - for (int i = 0; !*join_ended && thread_ctrl::state() != thread_state::aborting;) + for (int i = 0; !*join_ended && thread_ctrl::state() != thread_state::aborting; i++) { if (g_watchdog_hold_ctr) { @@ -3415,7 +3415,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s } thread_ctrl::wait_for(5'000); - i++; } while (thread_ctrl::state() != thread_state::aborting)