mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 06:15:02 +00:00
Fix git_close/http_close/local_close to set the transport's connected attribute to 0.
This commit is contained in:
parent
36c88422ef
commit
e9551e86b9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user