Skip to content

Commit 2eca613

Browse files
committed
1 parent 701d891 commit 2eca613

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/ning/http/client/providers/grizzly/HttpTransactionContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ public void onClosed(Closeable closeable, CloseType type) throws IOException {
104104
try {
105105
closeable.assertOpen();
106106
} catch (IOException ioe) {
107-
abort(ioe);
107+
// unwrap the exception as it was wrapped by assertOpen.
108+
abort(ioe.getCause());
108109
}
109110
}
110111
}

0 commit comments

Comments
 (0)