mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
wait: Check for disabled timer
This commit is contained in:
parent
c6fc6a41e5
commit
9da123f916
@ -35,6 +35,10 @@ Result waitN(s32* idx_out, WaitObject* objects, size_t num_objects, u64 timeout)
|
||||
case WaitObjectType_UsermodeTimer:
|
||||
timer_tick = _utimerGetNextTime(obj->timer);
|
||||
|
||||
// Skip timer if disabled.
|
||||
if (timer_tick == 0)
|
||||
break;
|
||||
|
||||
// If the timer already signalled, we're done.
|
||||
if (timer_tick < cur_tick)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user