From 833f0c095d50627b38451de9e887aab07e8464b9 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Wed, 30 Apr 2003 19:23:27 +0000 Subject: [PATCH] fix a bug where a event fires twice due to bad active list handling svn:r68 --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.40.0