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

This commit is contained in:
Arthur Schreiber 2012-06-02 16:52:22 +02:00
parent 36c88422ef
commit e9551e86b9
3 changed files with 5 additions and 0 deletions

View File

@ -417,6 +417,8 @@ static int git_close(git_transport *transport)
return -1;
}
t->parent.connected = 0;
#ifdef GIT_WIN32
WSACleanup();
#endif

View File

@ -610,6 +610,8 @@ static int http_close(git_transport *transport)
return -1;
}
t->parent.connected = 0;
return 0;
}

View File

@ -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;