Skip to content

Commit

Permalink
Merge pull request ContainX#1166 from gdankov/httpclient-connection-d…
Browse files Browse the repository at this point in the history
…eadlock-fix

Fix issue ContainX#1165.
  • Loading branch information
auhlig authored Mar 22, 2018
2 parents 7fb33df + 0b9ef09 commit 7635570
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ private <R> HttpResponse invokeRequest(HttpCommand<R> command) throws Exception
{
OSAuthenticator.reAuthenticate();
command.getRequest().getHeaders().put(ClientConstants.HEADER_X_AUTH_TOKEN, OSClientSession.getCurrent().getTokenId());
return invokeRequest(command.incrementRetriesAndReturn());
} finally {
response.close();
}
return invokeRequest(command.incrementRetriesAndReturn());
}

return HttpResponseImpl.wrap(response);
Expand Down

0 comments on commit 7635570

Please sign in to comment.