refactored

This commit is contained in:
Tuna Celik 2026-01-29 13:35:50 +01:00
parent dd412015ad
commit 930a0bfb6b

View File

@ -3393,7 +3393,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
bool is_being_held_longer = false; 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) 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); thread_ctrl::wait_for(5'000);
i++;
} }
while (thread_ctrl::state() != thread_state::aborting) while (thread_ctrl::state() != thread_state::aborting)