diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-16 15:35:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-16 15:35:16 +0100 |
commit | 8a0160f2825fbec8a9b1c8361f15a372b221245d (patch) | |
tree | 5e7c05b2ade13a1e20e87e454aa1587e2bcb15bd /src/libstat | |
parent | 253bad00ac438c3683f971b94c9a11bd76e06594 (diff) | |
download | rspamd-8a0160f2825fbec8a9b1c8361f15a372b221245d.tar.gz rspamd-8a0160f2825fbec8a9b1c8361f15a372b221245d.zip |
[Fix] One more try to fix redis
Diffstat (limited to 'src/libstat')
-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); |