Commit b1453601f9051106deb79c331016becc6a15ff42

Patrick Steinhardt 2016-08-17T11:38:26

transports: http: reset `connected` flag when closing transport

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/http.c b/src/transports/http.c
index efa6383..ca1f504 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -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);