From 301fe946b22c253cdd9e9a6c58eca3f607e362a9 Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 25 Sep 2024 15:27:05 -0700 Subject: [PATCH] testing for logic error --- memcached.c | 1 + 1 file changed, 1 insertion(+) diff --git a/memcached.c b/memcached.c index fb888b526..0406e74ab 100644 --- a/memcached.c +++ b/memcached.c @@ -523,6 +523,7 @@ void conn_close_idle(conn *c) { static void _conn_event_readd(conn *c) { c->ev_flags = EV_READ | EV_PERSIST; + event_del(&c->event); event_set(&c->event, c->sfd, c->ev_flags, event_handler, (void *)c); event_base_set(c->thread->base, &c->event);