mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
fix a bug for persistent events when using select()
svn:r108
This commit is contained in:
parent
de5fc61928
commit
a78472da72
2
select.c
2
select.c
@ -201,6 +201,8 @@ select_dispatch(void *arg, struct timeval *tv)
|
|||||||
if (res) {
|
if (res) {
|
||||||
if (!(ev->ev_events & EV_PERSIST))
|
if (!(ev->ev_events & EV_PERSIST))
|
||||||
event_del(ev);
|
event_del(ev);
|
||||||
|
else if (ev->ev_fd > maxfd)
|
||||||
|
maxfd = ev->ev_fd;
|
||||||
event_active(ev, res, 1);
|
event_active(ev, res, 1);
|
||||||
} else if (ev->ev_fd > maxfd)
|
} else if (ev->ev_fd > maxfd)
|
||||||
maxfd = ev->ev_fd;
|
maxfd = ev->ev_fd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user