diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:25:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:25:57 +0000 |
commit | 1c547c7425d9a3a63a3ee471051ad197a642ba46 (patch) | |
tree | f168079031faee268ef3e900accffd2dda64cdec /src/libserver/task.c | |
parent | e0639a0d3567c38a64d235f9e77578907e5cc63d (diff) | |
download | rspamd-1c547c7425d9a3a63a3ee471051ad197a642ba46.tar.gz rspamd-1c547c7425d9a3a63a3ee471051ad197a642ba46.zip |
[Minor] Fix order in the switch..case
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 17 |
1 files 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; |