From: Vsevolod Stakhov Date: Sun, 27 Oct 2019 13:31:57 +0000 (+0000) Subject: [Minor] Stop task timeout timer on idempotent stage X-Git-Tag: 2.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b426fd1ee5be0e1ff8add146e72c4629a818f5a;p=thirdparty%2Frspamd.git [Minor] Stop task timeout timer on idempotent stage --- diff --git a/src/libserver/task.c b/src/libserver/task.c index 9e87088a2d..2fb9bf1d97 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -722,7 +722,14 @@ rspamd_task_process (struct rspamd_task *task, guint stages) case RSPAMD_TASK_STAGE_PRE_FILTERS_EMPTY: case RSPAMD_TASK_STAGE_PRE_FILTERS: case RSPAMD_TASK_STAGE_FILTERS: + all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st); + break; case RSPAMD_TASK_STAGE_IDEMPOTENT: + /* Stop task timeout */ + if (ev_can_stop (&task->timeout_ev)) { + ev_timer_stop (task->event_loop, &task->timeout_ev); + } + all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st); break;