mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.
svn:r519
This commit is contained in:
parent
568095bfa1
commit
3742868ab5
@ -49,3 +49,4 @@ Changes in current version:
|
|||||||
o Remove a bash-ism in autogen.sh
|
o Remove a bash-ism in autogen.sh
|
||||||
o When calling event_del on a signal, restore the signal handler's previous value rather than setting it to SIG_DFL. Patch from Christopher Layne.
|
o When calling event_del on a signal, restore the signal handler's previous value rather than setting it to SIG_DFL. Patch from Christopher Layne.
|
||||||
o Make the logic for active events work better with internal events; patch from Christopher Layne.
|
o Make the logic for active events work better with internal events; patch from Christopher Layne.
|
||||||
|
o We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.
|
||||||
|
1
event.c
1
event.c
@ -815,7 +815,6 @@ timeout_process(struct event_base *base)
|
|||||||
while ((ev = min_heap_top(&base->timeheap))) {
|
while ((ev = min_heap_top(&base->timeheap))) {
|
||||||
if (evutil_timercmp(&ev->ev_timeout, &now, >))
|
if (evutil_timercmp(&ev->ev_timeout, &now, >))
|
||||||
break;
|
break;
|
||||||
event_queue_remove(base, ev, EVLIST_TIMEOUT);
|
|
||||||
|
|
||||||
/* delete this event from the I/O queues */
|
/* delete this event from the I/O queues */
|
||||||
event_del(ev);
|
event_del(ev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user