Commit e9551e86 by Arthur Schreiber

Fix git_close/http_close/local_close to set the transport's connected attribute to 0.

parent 36c88422
......@@ -417,6 +417,8 @@ static int git_close(git_transport *transport)
return -1;
}
t->parent.connected = 0;
#ifdef GIT_WIN32
WSACleanup();
#endif
......
......@@ -610,6 +610,8 @@ static int http_close(git_transport *transport)
return -1;
}
t->parent.connected = 0;
return 0;
}
......
......@@ -190,6 +190,7 @@ static int local_close(git_transport *transport)
{
transport_local *t = (transport_local *)transport;
t->parent.connected = 0;
git_repository_free(t->repo);
t->repo = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment