Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #38 from tartale/issue-37
Browse files Browse the repository at this point in the history
Ensure response is closed on session renewal
  • Loading branch information
rickfast committed Jul 20, 2015
2 parents 1468aa8 + 00348e9 commit 52622bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/orbitz/consul/SessionClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public boolean renewSession(final String dc, final String sessionId) {

Response session = target.path("renew").path(sessionId).request().put(Entity.entity("{}",
MediaType.APPLICATION_JSON_TYPE));
return session.hasEntity();
boolean result = session.hasEntity();
session.close();
return result;

}

Expand Down

0 comments on commit 52622bf

Please sign in to comment.