We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af31a2e commit c56f53bCopy full SHA for c56f53b
src/ev.c
@@ -296,6 +296,8 @@ static int ev_api_get_event_type(struct ev_ctx *ctx, int idx) {
296
// We want to remember the previous events only if they're not of type
297
// CLOSE or TIMER
298
int mask = ev_mask & (EV_CLOSEFD|EV_TIMERFD) ? ev_mask : 0;
299
+ if (!FD_ISSET(idx, &s_api->_rfds) && !FD_ISSET(idx, &s_api->_wfds))
300
+ return EV_NONE;
301
if (FD_ISSET(idx, &s_api->_rfds)) mask |= EV_READ;
302
if (FD_ISSET(idx, &s_api->_wfds)) mask |= EV_WRITE;
303
return mask;
0 commit comments