diff options
-rw-r--r-- | src/libserver/task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index a45342907..3756e7c63 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -127,7 +127,9 @@ rspamd_task_reply (struct rspamd_task *task) task->fin_callback (task, task->fin_arg); } else { - rspamd_protocol_write_reply (task, write_timeout); + if (!(task->processed_stages & RSPAMD_TASK_STAGE_REPLIED)) { + rspamd_protocol_write_reply (task, write_timeout); + } } } |