don't error if LightEvent_WaitTimeout times out

This commit is contained in:
camthehaxman 2024-01-19 08:42:34 -06:00
parent c2f2f9570a
commit f9550ff6a3

View File

@ -277,8 +277,7 @@ void Waitable_Wait(void* handle) {
void Waitable_WaitFor(void* handle, cc_uint32 milliseconds) {
s64 timeout_ns = milliseconds * (1000 * 1000); // milliseconds to nanoseconds
int res = LightEvent_WaitTimeout((LightEvent*)handle, timeout_ns);
if (res) Logger_Abort2(res, "Waiting timed event");
LightEvent_WaitTimeout((LightEvent*)handle, timeout_ns);
}
@ -462,4 +461,4 @@ static cc_result GetMachineID(cc_uint32* key) {
psInit();
return PS_GetDeviceId(key);
}
#endif
#endif