Skip to content

Commit 049618c

Browse files
committed
httpclient: git_http_client_skip_body should drain socket of body
1 parent cabfa3b commit 049618c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/httpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ int git_http_client_skip_body(git_http_client *client)
15031503
"unexpected data handled in callback");
15041504
error = -1;
15051505
}
1506-
} while (!error);
1506+
} while (error >= 0 && client->state != DONE);
15071507

15081508
if (error < 0)
15091509
client->connected = 0;

0 commit comments

Comments
 (0)