]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another try to fix race
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jan 2020 10:50:13 +0000 (10:50 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jan 2020 10:50:13 +0000 (10:50 +0000)
src/libserver/redis_pool.c

index 3cae96debc3770592e8234a07611906d56a27e5d..9187a5e0bf2fc22ec2fc46820d393c03943976a3 100644 (file)
@@ -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);