commit 1b34365ca1f7222a82054ece1901ffb87ffc8b21 (tree)
parent 7c2bde1f07f5e672bb2320c517568dab9edab652
Author: Isaac Freund <ifreund@ifreund.xyz>
Date: Tue, 27 Oct 2020 21:28:31 +0100
std/event: fix poll error set handling
This has been broken since 127fa80
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
@@ -467,6 +467,7 @@ pub const Loop = struct {
}};
_ = os.poll(&pfd, -1) catch |poll_err| switch (poll_err) {
error.SystemResources,
+ error.NetworkSubsystemFailed,
error.Unexpected,
=> {
// Even poll() didn't work. The best we can do now is sleep for a