aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/worker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index ee00bb63b..270d71f61 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -146,6 +146,8 @@ read_socket (f_str_t *in, void *arg)
task->last_error = "Read error";
task->error_code = RSPAMD_NETWORK_ERROR;
task->state = WRITE_ERROR;
+ }
+ if (task->state == WRITE_REPLY || task->state == WRITE_ERROR) {
write_socket (task);
}
break;