Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into github
Browse files Browse the repository at this point in the history
  • Loading branch information
peggypig committed Sep 28, 2020
2 parents ed2055f + 5b021ad commit 73e4cf4
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,14 @@ public BaseResponseResult doHttp(HttpUriRequest request, UcloudHandler handler,
logger.error("response close error:{}", e.getMessage());
}
}
try {
closeableHttpClient.close();
} catch (IOException e) {
if (enableLog) {
logger.error("httpClient close error:{}", e.getMessage());
}
}
}
return responseResult;
}

public static void closeHttpClient() throws IOException {
closeableHttpClient.close();
}

private void handlerResult(UcloudHandler handler, BaseResponseResult result) {
if (result.getRetCode() != 0) {
handler.failed(result);
Expand Down

0 comments on commit 73e4cf4

Please sign in to comment.