From 569f5fd3faf8272898e7db4faa94047b29f7377b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 1 Sep 2015 12:38:39 +0100 Subject: Fix hang on processing non-mime messages. --- src/libserver/task.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libserver') diff --git a/src/libserver/task.c b/src/libserver/task.c index 61e0befc7..8c9f8b282 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -472,6 +472,11 @@ rspamd_task_process (struct rspamd_task *task, guint stages) task->flags &= ~RSPAMD_TASK_FLAG_PROCESSING; if (!ret || RSPAMD_TASK_IS_PROCESSED (task)) { + if (!ret) { + /* Set processed flags */ + task->processed_stages |= RSPAMD_TASK_STAGE_DONE; + } + return ret; } -- cgit v1.2.3