Skip to content

Commit

Permalink
fabric8io#1103: Don't call is.close() as it is already done by reques…
Browse files Browse the repository at this point in the history
…t.abort()
  • Loading branch information
ncelerier committed Jun 29, 2021
1 parent e78829c commit de93e4b
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,9 @@ private void parseResponse(HttpResponse response) throws LogCallback.DoneExcepti

final InputStream is = response.getEntity().getContent();

try {
while (true) {
if (!readStreamFrame(is)) {
return;
}
}
} finally {
if ((is != null) && (is.available() > 0)) {
is.close();
while (true) {
if (!readStreamFrame(is)) {
return;
}
}
}
Expand All @@ -215,7 +209,9 @@ private HttpUriRequest getLogRequest(boolean follow) {
@Override
public void finish() {
if (request != null) {
System.out.println("*** Calling request.abort...");
request.abort();
System.out.println("*** Calling request.abort: done.");
request = null;
}
}
Expand Down

0 comments on commit de93e4b

Please sign in to comment.