diff options
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r-- | src/devpoll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp index 12b22ce..da56a7f 100644 --- a/src/devpoll.cpp +++ b/src/devpoll.cpp @@ -169,15 +169,15 @@ void xs::devpoll_t::loop () if (!fd_ptr->valid || !fd_ptr->accepted) continue; if (ev_buf [i].revents & (POLLERR | POLLHUP)) - fd_ptr->reactor->in_event (); + fd_ptr->reactor->in_event (ev_buf [i].fd); if (!fd_ptr->valid || !fd_ptr->accepted) continue; if (ev_buf [i].revents & POLLOUT) - fd_ptr->reactor->out_event (); + fd_ptr->reactor->out_event (ev_buf [i].fd); if (!fd_ptr->valid || !fd_ptr->accepted) continue; if (ev_buf [i].revents & POLLIN) - fd_ptr->reactor->in_event (); + fd_ptr->reactor->in_event (ev_buf [i].fd); } } } |