fix bug that broke poll/select stuff

svn:r141
This commit is contained in:
Niels Provos 2005-04-03 07:46:27 +00:00
parent 720f7fcc0d
commit 1e128e2d05
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);