aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-01 12:38:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-01 12:38:39 +0100
commit569f5fd3faf8272898e7db4faa94047b29f7377b (patch)
tree68d7976bb09192307a405b624feabe8fbaf3d919 /src
parentf8fbf1dd71c081539865c2eddb14a71f10c26fe2 (diff)
downloadrspamd-569f5fd3faf8272898e7db4faa94047b29f7377b.tar.gz
rspamd-569f5fd3faf8272898e7db4faa94047b29f7377b.zip
Fix hang on processing non-mime messages.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/task.c5
1 files changed, 5 insertions, 0 deletions
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;
}