]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Disable invalid unref for inactive connections
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Nov 2016 11:04:26 +0000 (11:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Nov 2016 11:04:26 +0000 (11:04 +0000)
src/libserver/redis_pool.c

index fa9573f391436bb366fa803f7d08688939fe0add..1efc4f7433f2488f11c22f8eb9426408e6b7f412 100644 (file)
@@ -116,6 +116,8 @@ rspamd_redis_pool_conn_dtor (struct rspamd_redis_pool_connection *conn)
                }
 
                if (conn->ctx) {
+                       /* To prevent on_disconnect here */
+                       conn->active = TRUE;
                        g_hash_table_remove (conn->elt->pool->elts_by_ctx, conn->ctx);
                        redisAsyncFree (conn->ctx);
                }