commit 1c547c7: [Minor] Fix order in the switch..case
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Dec 24 17:07:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-24 16:25:57 +0000
URL: https://github.com/rspamd/rspamd/commit/1c547c7425d9a3a63a3ee471051ad197a642ba46
[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;
More information about the Commits
mailing list