diff options
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index d4097fff3..8aed06994 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -680,7 +680,7 @@ rspamd_redis_fin (gpointer data) { struct redis_stat_runtime *rt = REDIS_RUNTIME (data); - if (rt->conn_state == RSPAMD_REDIS_TERMINATED) { + if (rt->conn_state != RSPAMD_REDIS_TERMINATED) { rt->conn_state = RSPAMD_REDIS_TERMINATED; event_del (&rt->timeout_event); REF_RELEASE (rt); @@ -692,7 +692,7 @@ rspamd_redis_fin_learn (gpointer data) { struct redis_stat_runtime *rt = REDIS_RUNTIME (data); - if (rt->conn_state == RSPAMD_REDIS_TERMINATED) { + if (rt->conn_state != RSPAMD_REDIS_TERMINATED) { rt->conn_state = RSPAMD_REDIS_TERMINATED; event_del (&rt->timeout_event); REF_RELEASE (rt); |