From 81e4d9c2eef4da8b64d969934149b2e666353d1f Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 29 Apr 2023 09:30:53 +0300 Subject: [PATCH] LV2/TImer: Fix notification discard --- rpcs3/Emu/Cell/lv2/sys_timer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_timer.cpp b/rpcs3/Emu/Cell/lv2/sys_timer.cpp index 8128964545..4f42b33d88 100644 --- a/rpcs3/Emu/Cell/lv2/sys_timer.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_timer.cpp @@ -115,7 +115,7 @@ void lv2_timer_thread::operator()() { u64 sleep_time = 0; - while (thread_ctrl::state() != thread_state::aborting) + while (true) { if (sleep_time != umax) { @@ -125,6 +125,11 @@ void lv2_timer_thread::operator()() thread_ctrl::wait_for(sleep_time); + if (thread_ctrl::state() == thread_state::aborting) + { + break; + } + sleep_time = umax; if (Emu.IsPaused())