diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-30 18:47:15 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-30 18:47:15 +0400 |
commit | 1670afcda506b1641e8b0dc34b894f7ab2817607 (patch) | |
tree | e415b50cdcfab137c7a99c7a0ac2b6a4f12c9dfd /src/worker.c | |
parent | 43f29d9dd15bde9a27f2f8708c870b08509fd8b8 (diff) | |
download | rspamd-1670afcda506b1641e8b0dc34b894f7ab2817607.tar.gz rspamd-1670afcda506b1641e8b0dc34b894f7ab2817607.zip |
* Fix ping command
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 2 |
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; |