Put missing check_state() in some places

Fixes a few verification failures while closing the emulator with HLE liblv2
This commit is contained in:
eladash 2019-04-01 15:30:44 +03:00 committed by Ivan
parent 888cb9d673
commit 2b4bc588dc
3 changed files with 19 additions and 1 deletions

View file

@ -297,6 +297,11 @@ error_code sys_lwcond_wait(ppu_thread& ppu, vm::ptr<sys_lwcond_t> lwcond, u64 ti
// call the syscall
const error_code res = _sys_lwcond_queue_wait(ppu, lwcond->lwcond_queue, lwmutex->sleep_queue, timeout);
if (ppu.test_stopped())
{
return 0;
}
if (res == CELL_OK || res == CELL_ESRCH)
{
if (res == CELL_OK)