Skip to content

Commit

Permalink
[Fix] Stop slow timer on task destruction
Browse files Browse the repository at this point in the history
Issue: #4182
  • Loading branch information
vstakhov committed May 27, 2022
1 parent f015521 commit 64cc33b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libserver/symcache/symcache_runtime.cxx
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 64cc33b

Please sign in to comment.