]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix order in the switch..case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Dec 2019 16:25:57 +0000 (16:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Dec 2019 16:25:57 +0000 (16:25 +0000)
src/libserver/task.c

index 634ebb392339c2b8a559dc85f105b380d4ccdb68..86886b1e26975fd2927ab0ab6d717a2c1efb5a13 100644 (file)
@@ -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;