commit 240d09e: [Minor] Avoid double reply
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 11 16:00:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-11 16:49:56 +0100
URL: https://github.com/rspamd/rspamd/commit/240d09e1cff0bece64e1e5b975fc70e464598a69
[Minor] Avoid double reply
---
src/libserver/task.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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);
+ }
}
}
More information about the Commits
mailing list