Skip to content

Commit 1730733

Browse files
authored
Catch AssertionError when closing OkHttp's response (docker-java#1420)
1 parent 54c86ce commit 1730733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-java-transport-okhttp/src/main/java/com/github/dockerjava/okhttp/OkDockerHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public void close() {
271271
CLOSING.set(true);
272272
try {
273273
response.close();
274-
} catch (Exception e) {
274+
} catch (Exception | AssertionError e) {
275275
LOGGER.debug("Failed to close the response", e);
276276
} finally {
277277
CLOSING.set(previous);

0 commit comments

Comments
 (0)