From a9c18964b68bd200ab9be4abdd1b4ad36f6a1646 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 16 Apr 2020 19:40:35 +0300 Subject: [PATCH] Add missing cpu state check sys_spu_thread_receive_event --- rpcs3/Emu/Cell/SPUThread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 6f27e22841..d05c82c1f7 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -2812,6 +2812,11 @@ bool spu_thread::stop_and_signal(u32 code) std::lock_guard lock(group->mutex); + if (is_stopped()) + { + return false; + } + if (group->run_state >= SPU_THREAD_GROUP_STATUS_WAITING && group->run_state <= SPU_THREAD_GROUP_STATUS_WAITING_AND_SUSPENDED) { // Try again