From: Vsevolod Stakhov Date: Mon, 13 Jan 2020 10:50:13 +0000 (+0000) Subject: [Minor] Another try to fix race X-Git-Tag: 2.3~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab72b000c4b7d72480ca6347334b64d3541e31ad;p=rspamd.git [Minor] Another try to fix race --- 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);