diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-27 21:15:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-27 21:15:51 +0100 |
commit | 64cc33bb9169369241c78b999e3d1a4ce0a2cb02 (patch) | |
tree | 2d118a38fc7ab7a0477206501d77c91b0daf3bb1 | |
parent | f015521e4ac67946d322aa4df4fb63a12345e5cc (diff) | |
download | rspamd-64cc33bb9169369241c78b999e3d1a4ce0a2cb02.tar.gz rspamd-64cc33bb9169369241c78b999e3d1a4ce0a2cb02.zip |
[Fix] Stop slow timer on task destruction
Issue: #4182
-rw-r--r-- | src/libserver/symcache/symcache_runtime.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |