diff --git a/lib/std/Io.zig b/lib/std/Io.zig index ad26893651a66e802c77d6617cf15a76cdcf950c..d01077d803f0207b858d8b97e14897c8b2813e73 100644 --- a/lib/std/Io.zig +++ b/lib/std/Io.zig @@ -1592,7 +1592,7 @@ pub const Event = enum(u32) { // waiters would wake up when a *new waiter* was added. So it's easiest to just leave // the state at `.waiting`---at worst it causes one redundant call to `futexWake`. } - io.futexWaitTimeout(Event, event, .waiting, timeout); + try io.futexWaitTimeout(Event, event, .waiting, timeout); switch (@atomicLoad(Event, event, .acquire)) { .unset => unreachable, // `reset` called before pending `wait` returned .waiting => return error.Timeout,