diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 13:35:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 13:35:14 +0100 |
commit | 915a460b6a425cc5694f4166c86ee8138ffd0ace (patch) | |
tree | 9bb4d5be1cdbc13522241a1035367ab58298b001 /src/libserver/fuzzy_backend_redis.c | |
parent | 619fdbc7b82eea8f7b4f38fa9f29c02802619727 (diff) | |
download | rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.tar.gz rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.zip |
[Minor] Fix event pending checks
Diffstat (limited to 'src/libserver/fuzzy_backend_redis.c')
-rw-r--r-- | src/libserver/fuzzy_backend_redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend_redis.c index 7bb442a27..5081170b6 100644 --- a/src/libserver/fuzzy_backend_redis.c +++ b/src/libserver/fuzzy_backend_redis.c @@ -126,7 +126,7 @@ rspamd_fuzzy_redis_session_dtor (struct rspamd_fuzzy_redis_session *session, ac, is_fatal); } - if (event_get_base (&session->timeout)) { + if (rspamd_event_pending (&session->timeout, EV_TIMEOUT)) { event_del (&session->timeout); } |