From: Niels Provos Date: Wed, 30 Apr 2003 19:23:27 +0000 (+0000) Subject: fix a bug where a event fires twice due to bad active list handling X-Git-Tag: release-1.1b~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=833f0c095d50627b38451de9e887aab07e8464b9;p=libevent fix a bug where a event fires twice due to bad active list handling svn:r68 --- diff --git a/event.c b/event.c index a25d6e69..6aa43b96 100644 --- a/event.c +++ b/event.c @@ -337,7 +337,7 @@ event_add(struct event *ev, struct timeval *tv) } if ((ev->ev_events & (EV_READ|EV_WRITE)) && - !(ev->ev_flags & EVLIST_INSERTED)) { + !(ev->ev_flags & (EVLIST_INSERTED|EVLIST_ACTIVE))) { event_queue_insert(ev, EVLIST_INSERTED); return (evsel->add(evbase, ev));