mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 20:07:56 -04:00
fix bug that broke poll/select stuff
svn:r141
This commit is contained in:
parent
720f7fcc0d
commit
1e128e2d05
3
event.c
3
event.c
@ -725,7 +725,8 @@ event_queue_remove(struct event_base *base, struct event *ev, int queue)
|
|||||||
ev->ev_flags &= ~queue;
|
ev->ev_flags &= ~queue;
|
||||||
switch (queue) {
|
switch (queue) {
|
||||||
case EVLIST_ACTIVE:
|
case EVLIST_ACTIVE:
|
||||||
base->event_count_active--;
|
if (docount)
|
||||||
|
base->event_count_active--;
|
||||||
TAILQ_REMOVE(base->activequeues[ev->ev_pri],
|
TAILQ_REMOVE(base->activequeues[ev->ev_pri],
|
||||||
ev, ev_active_next);
|
ev, ev_active_next);
|
||||||
break;
|
break;
|
||||||
|
@ -622,7 +622,6 @@ test_multiple_events_for_same_fd(void)
|
|||||||
|
|
||||||
setup_test("Multiple events for same fd: ");
|
setup_test("Multiple events for same fd: ");
|
||||||
|
|
||||||
event_init();
|
|
||||||
event_set(&e1, pair[0], EV_READ, test_multiple_cb, NULL);
|
event_set(&e1, pair[0], EV_READ, test_multiple_cb, NULL);
|
||||||
event_add(&e1, NULL);
|
event_add(&e1, NULL);
|
||||||
event_set(&e2, pair[0], EV_WRITE, test_multiple_cb, NULL);
|
event_set(&e2, pair[0], EV_WRITE, test_multiple_cb, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user