From 915a460b6a425cc5694f4166c86ee8138ffd0ace Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 6 Oct 2018 13:35:14 +0100 Subject: [Minor] Fix event pending checks --- src/libserver/fuzzy_backend_redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libserver/fuzzy_backend_redis.c') 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); } -- cgit v1.2.3