From: Andre Noll Date: Mon, 28 Dec 2009 22:03:31 +0000 (+0100) Subject: Fix http_recv. X-Git-Tag: v0.4.2~247 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ebc3f5891079568a0b0e120e1504170bd6000f78;hp=4b694c91983ce8c70562a8fa1d897e426f8e870b Fix http_recv. --- diff --git a/http_recv.c b/http_recv.c index f7796d4a..bedd989e 100644 --- a/http_recv.c +++ b/http_recv.c @@ -156,6 +156,9 @@ static void http_recv_post_select(struct sched *s, struct task *t) BUFSIZE - rn->loaded); if (t->error == 0) t->error = -E_RECV_EOF; + if (t->error < 0) + return; + rn->loaded += t->error; } static void http_recv_close(struct receiver_node *rn)