commit 64cc33b: [Fix] Stop slow timer on task destruction
Vsevolod Stakhov
vsevolod at rspamd.com
Fri May 27 20:21:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-27 21:15:51 +0100
URL: https://github.com/rspamd/rspamd/commit/64cc33bb9169369241c78b999e3d1a4ce0a2cb02 (HEAD -> master)
[Fix] Stop slow timer on task destruction
Issue: #4182
---
src/libserver/symcache/symcache_runtime.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libserver/symcache/symcache_runtime.cxx b/src/libserver/symcache/symcache_runtime.cxx
index 4bfa99529..f80c1ba19 100644
--- a/src/libserver/symcache/symcache_runtime.cxx
+++ b/src/libserver/symcache/symcache_runtime.cxx
@@ -674,6 +674,7 @@ rspamd_delayed_timer_dtor(gpointer d)
/* Event has not been executed */
rspamd_session_remove_event (cbd->task->s,
rspamd_symcache_delayed_item_fin, cbd);
+ ev_timer_stop(cbd->task->event_loop, &cbd->tm);
cbd->event = nullptr;
}
}
More information about the Commits
mailing list