aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-16 12:33:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-16 12:33:06 +0100
commitcb4e67963b6e5a4c58c77e39c10517d0ba3af068 (patch)
tree92795cdcd68568c3067eb80d1e9eabc3961cdc91 /src/libstat/backends
parenta9adc939cca0c13bba0790748b573d225483ff1d (diff)
downloadrspamd-cb4e67963b6e5a4c58c77e39c10517d0ba3af068.tar.gz
rspamd-cb4e67963b6e5a4c58c77e39c10517d0ba3af068.zip
[Fix] Fix state on timeout
Diffstat (limited to 'src/libstat/backends')
-rw-r--r--src/libstat/backends/redis_backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index cd18e8277..cb7f0f75b 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -715,7 +715,7 @@ rspamd_redis_timeout (gint fd, short what, gpointer d)
rspamd_session_remove_event (task->s, rspamd_redis_fin, rt);
}
- rt->conn_state = RSPAMD_REDIS_TIMEDOUT;
+ rt->conn_state = RSPAMD_REDIS_TERMINATED;
redisAsyncFree (rt->redis);
rt->redis = NULL;
REF_RELEASE (rt);