Skip to content
Prev Previous commit
Allow shutdown to throw the IOException from closing the httpClient
  • Loading branch information
chingor13 committed Jan 4, 2019
commit b107889883f323263e834f10d44bc8fcdad4b3c6
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,9 @@ protected ApacheHttpRequest buildRequest(String method, String url) {
* @since 1.4
*/
@Override
public void shutdown() {
public void shutdown() throws IOException {
if (httpClient instanceof CloseableHttpClient) {
try {
((CloseableHttpClient) httpClient).close();
} catch (IOException e) {
// ignore
}
((CloseableHttpClient) httpClient).close();
}
}

Expand Down