}
if (rt->conn_state == RSPAMD_REDIS_CONNECTED) {
- redisAsyncFree (rt->redis);
rt->conn_state = RSPAMD_REDIS_TERMINATED;
+ redisAsyncFree (rt->redis);
}
REF_RELEASE (rt);
if (rt->conn_state == RSPAMD_REDIS_CONNECTED) {
event_del (&rt->timeout_event);
- redisAsyncFree (rt->redis);
- rt->redis = NULL;
-
rt->conn_state = RSPAMD_REDIS_TERMINATED;
+ redisAsyncFree (rt->redis);
+ rt->redis = NULL;
REF_RELEASE (rt);
}
}
if (rt->conn_state == RSPAMD_REDIS_CONNECTED) {
event_del (&rt->timeout_event);
+ rt->conn_state = RSPAMD_REDIS_TERMINATED;
redisAsyncFree (rt->redis);
rt->redis = NULL;
-
- rt->conn_state = RSPAMD_REDIS_TERMINATED;
REF_RELEASE (rt);
}
}
if (rt->redis) {
event_del (&rt->timeout_event);
+ rt->conn_state = RSPAMD_REDIS_TERMINATED;
redisAsyncFree (rt->redis);
rt->redis = NULL;
-
- rt->conn_state = RSPAMD_REDIS_TERMINATED;
}
if (st->stat) {