Skip to content

Commit 048955f

Browse files
committed
Capture runtimeException
1 parent acd2d61 commit 048955f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/DefaultBHttpClientConnection.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public void close() throws IOException {
290290
if (len != 0) {
291291
this.consistent = false;
292292
}
293-
} catch (final IOException ex) {
293+
} catch (final IOException | RuntimeException ex) {
294294
this.consistent = false;
295295
close(CloseMode.IMMEDIATE);
296296
throw ex;

0 commit comments

Comments
 (0)