diff --git a/src/iomux_epoll.c b/src/iomux_epoll.c index 67e53c9..21c8898 100644 --- a/src/iomux_epoll.c +++ b/src/iomux_epoll.c @@ -183,6 +183,8 @@ again: fd->callback(mux_, fd, events); //be sure not to use fd after the callback, it might been removed. + mux->pending_events[i].data.ptr = NULL; + event_cnt++; } }