Fix Regression #932 (#973)

This commit is contained in:
adjonesey 2024-09-19 05:15:42 +01:00 committed by GitHub
parent c4ff866e34
commit a5c15e643e

View file

@ -32,6 +32,10 @@ public:
return ORBIS_KERNEL_ERROR_EBUSY;
}
if (timeout && *timeout == 0) {
return SCE_KERNEL_ERROR_ETIMEDOUT;
}
// Create waiting thread object and add it into the list of waiters.
WaitingThread waiter{need_count, is_fifo};
const auto it = AddWaiter(&waiter);