]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Stop slow timer on task destruction
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 27 May 2022 20:15:51 +0000 (21:15 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 27 May 2022 20:15:51 +0000 (21:15 +0100)
Issue: #4182

src/libserver/symcache/symcache_runtime.cxx

index 4bfa99529c9c0b074ac811bb30203a6ab228607b..f80c1ba19f9de05453d7903935526cb2840ea503 100644 (file)
@@ -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;
        }
 }