From 10fe4ef300df9475ec37e817aa5777044f7d03b4 Mon Sep 17 00:00:00 2001 From: John Ohl Date: Sun, 16 Nov 2014 23:40:16 -0500 Subject: [PATCH] Prevent duplicate event_del on fd --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index e02297ac..449056c9 100644 --- a/http.c +++ b/http.c @@ -1265,6 +1265,7 @@ evhttp_connection_reset_(struct evhttp_connection *evcon) shutdown(evcon->fd, EVUTIL_SHUT_WR); evutil_closesocket(evcon->fd); + bufferevent_setfd(evcon->bufev, -1); evcon->fd = -1; }