From 1c547c7425d9a3a63a3ee471051ad197a642ba46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Dec 2019 16:25:57 +0000 Subject: [PATCH] [Minor] Fix order in the switch..case --- src/libserver/task.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/libserver/task.c b/src/libserver/task.c index 634ebb392..86886b1e2 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -727,14 +727,6 @@ rspamd_task_process (struct rspamd_task *task, guint stages) 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; case RSPAMD_TASK_STAGE_PROCESS_MESSAGE: if (!(task->flags & RSPAMD_TASK_FLAG_SKIP_PROCESS)) { @@ -817,6 +809,15 @@ rspamd_task_process (struct rspamd_task *task, guint stages) rspamd_make_composites (task); 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; + case RSPAMD_TASK_STAGE_DONE: task->processed_stages |= RSPAMD_TASK_STAGE_DONE; break; -- 2.39.5