Skip to content

Commit

Permalink
close response body (#139)
Browse files Browse the repository at this point in the history
- close respons by when it is returned
  • Loading branch information
electrostat committed May 10, 2018
1 parent 7a0fa5c commit e0bfbfe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void onFailure(Call call, IOException exception) {

@Override
public void onResponse(Call call, Response response) {
response.body().close();
for (TelemetryListener telemetryListener : telemetryListeners) {
telemetryListener.onHttpResponse(response.isSuccessful(), response.code());
}
Expand Down

0 comments on commit e0bfbfe

Please sign in to comment.