From: Vsevolod Stakhov Date: Thu, 30 Apr 2009 14:47:15 +0000 (+0400) Subject: * Fix ping command X-Git-Tag: 0.2.7~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1670afcda506b1641e8b0dc34b894f7ab2817607;p=thirdparty%2Frspamd.git * Fix ping command --- diff --git a/src/worker.c b/src/worker.c index ee00bb63b7..270d71f614 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;