diff --git a/src/core/net.c b/src/core/net.c index 8e950c49..7ab2cc48 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -418,7 +418,7 @@ static void janet_loop1(void) { for (int i = 0; i < janet_vm_loop_count;) { int revents = janet_vm_pollfds[i].revents; janet_vm_pollfds[i].revents = 0; - if ((janet_vm_pollfds[i].events | POLLHUP | POLLER) & revents) { + if ((janet_vm_pollfds[i].events | POLLHUP | POLLERR) & revents) { size_t delta = janet_loop_event(i); i += (int) delta; } else {