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.tue.mpg.de/?a=commitdiff_plain;h=ebc3f5891079568a0b0e120e1504170bd6000f78;p=paraslash.git 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)