From ab72b000c4b7d72480ca6347334b64d3541e31ad Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Jan 2020 10:50:13 +0000 Subject: [PATCH] [Minor] Another try to fix race --- src/libserver/redis_pool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c index 3cae96deb..9187a5e0b 100644 --- a/src/libserver/redis_pool.c +++ b/src/libserver/redis_pool.c @@ -217,6 +217,7 @@ rspamd_redis_conn_timeout (EV_P_ ev_timer *w, int revents) } else { /* Finalising by timeout */ + ev_timer_stop (EV_A_ w); msg_debug_rpool ("final removal of connection %p, refcount: %d", conn->ctx, conn->ref.refcount); REF_RELEASE (conn); -- 2.39.5