X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=bedd989ee1f364a751f9e21069f8f2a95c434b94;hp=f7796d4a6a090d9966b02d262f4f3bb3abec30ad;hb=ebc3f5891079568a0b0e120e1504170bd6000f78;hpb=4b694c91983ce8c70562a8fa1d897e426f8e870b;ds=sidebyside 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)