summaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-30 18:47:15 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-30 18:47:15 +0400
commit1670afcda506b1641e8b0dc34b894f7ab2817607 (patch)
treee415b50cdcfab137c7a99c7a0ac2b6a4f12c9dfd /src/worker.c
parent43f29d9dd15bde9a27f2f8708c870b08509fd8b8 (diff)
downloadrspamd-1670afcda506b1641e8b0dc34b894f7ab2817607.tar.gz
rspamd-1670afcda506b1641e8b0dc34b894f7ab2817607.zip
* Fix ping command
Diffstat (limited to 'src/worker.c')
-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;