mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08: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;
|
||||
switch (queue) {
|
||||
case EVLIST_ACTIVE:
|
||||
base->event_count_active--;
|
||||
if (docount)
|
||||
base->event_count_active--;
|
||||
TAILQ_REMOVE(base->activequeues[ev->ev_pri],
|
||||
ev, ev_active_next);
|
||||
break;
|
||||
|
@ -622,7 +622,6 @@ test_multiple_events_for_same_fd(void)
|
||||
|
||||
setup_test("Multiple events for same fd: ");
|
||||
|
||||
event_init();
|
||||
event_set(&e1, pair[0], EV_READ, test_multiple_cb, NULL);
|
||||
event_add(&e1, NULL);
|
||||
event_set(&e2, pair[0], EV_WRITE, test_multiple_cb, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user