]> git.tue.mpg.de Git - paraslash.git/commitdiff
Fix http_recv.
authorAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:03:31 +0000 (23:03 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:03:31 +0000 (23:03 +0100)
http_recv.c

index f7796d4a6a090d9966b02d262f4f3bb3abec30ad..bedd989ee1f364a751f9e21069f8f2a95c434b94 100644 (file)
@@ -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)