transports: http: reset connected flag when closing transport

This commit is contained in:
Patrick Steinhardt 2016-08-17 11:38:26 +02:00
parent c4cba4e96a
commit b1453601f9

View File

@ -1036,6 +1036,8 @@ static int http_close(git_smart_subtransport *subtransport)
clear_parser_state(t);
t->connected = 0;
if (t->io) {
git_stream_close(t->io);
git_stream_free(t->io);