diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-01 12:38:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-01 12:38:39 +0100 |
commit | 569f5fd3faf8272898e7db4faa94047b29f7377b (patch) | |
tree | 68d7976bb09192307a405b624feabe8fbaf3d919 /src | |
parent | f8fbf1dd71c081539865c2eddb14a71f10c26fe2 (diff) | |
download | rspamd-569f5fd3faf8272898e7db4faa94047b29f7377b.tar.gz rspamd-569f5fd3faf8272898e7db4faa94047b29f7377b.zip |
Fix hang on processing non-mime messages.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/task.c | 5 |
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; } |