]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_recv.c
Fix http_recv.
[paraslash.git] / 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;
                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)
 }
 
 static void http_recv_close(struct receiver_node *rn)