diff options
-rw-r--r-- | src/eloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eloop.c b/src/eloop.c index 3badbbc..eabfeb2 100644 --- a/src/eloop.c +++ b/src/eloop.c @@ -836,7 +836,7 @@ int ev_eloop_dispatch(struct ev_eloop *loop, int timeout) continue; mask = convert_mask(ep[i].events); - if (mask & EV_HUP) + if ((mask & (EV_ERR | EV_HUP)) == mask) ev_fd_disable(fd); fd->cb(fd, mask, fd->data); |