aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 13:31:57 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 13:31:57 +0000
commit5b426fd1ee5be0e1ff8add146e72c4629a818f5a (patch)
tree1b140c8e8fe67a881dc65de97d2d2e096c10d4c1 /src
parent5baa521083597a39958c5bb677f308ff75831648 (diff)
downloadrspamd-5b426fd1ee5be0e1ff8add146e72c4629a818f5a.tar.gz
rspamd-5b426fd1ee5be0e1ff8add146e72c4629a818f5a.zip
[Minor] Stop task timeout timer on idempotent stage
Diffstat (limited to 'src')
-rw-r--r--src/libserver/task.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 9e87088a2..2fb9bf1d9 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;