summaryrefslogtreecommitdiffstats
path: root/src/libstat/learn_cache
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-06 13:35:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-06 13:35:14 +0100
commit915a460b6a425cc5694f4166c86ee8138ffd0ace (patch)
tree9bb4d5be1cdbc13522241a1035367ab58298b001 /src/libstat/learn_cache
parent619fdbc7b82eea8f7b4f38fa9f29c02802619727 (diff)
downloadrspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.tar.gz
rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.zip
[Minor] Fix event pending checks
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r--src/libstat/learn_cache/redis_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/learn_cache/redis_cache.c b/src/libstat/learn_cache/redis_cache.c
index 22de2c1bc..11bc13aae 100644
--- a/src/libstat/learn_cache/redis_cache.c
+++ b/src/libstat/learn_cache/redis_cache.c
@@ -73,7 +73,7 @@ rspamd_redis_cache_fin (gpointer data)
redisAsyncContext *redis;
rt->has_event = FALSE;
- if (event_get_base (&rt->timeout_event)) {
+ if (rspamd_event_pending (&rt->timeout_event, EV_TIMEOUT)) {
event_del (&rt->timeout_event);
}