mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
don't error if LightEvent_WaitTimeout times out
This commit is contained in:
parent
c2f2f9570a
commit
f9550ff6a3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user