Add missing cpu state check sys_spu_thread_receive_event

This commit is contained in:
Eladash 2020-04-16 19:40:35 +03:00 committed by Ivan
parent fe7933b0d2
commit a9c18964b6

View File

@ -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