From: Vsevolod Stakhov Date: Tue, 24 Dec 2019 16:25:57 +0000 (+0000) Subject: [Minor] Fix order in the switch..case X-Git-Tag: 2.3~175 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c547c7425d9a3a63a3ee471051ad197a642ba46;p=rspamd.git [Minor] Fix order in the switch..case --- 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;