File tree 2 files changed +3
-2
lines changed
client/src/main/java/org/asynchttpclient 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
158
158
159
159
@ Override
160
160
public void exceptionCaught (ChannelHandlerContext ctx , Throwable e ) throws Exception {
161
- Throwable cause = getCause (e . getCause () );
161
+ Throwable cause = getCause (e );
162
162
163
163
if (cause instanceof PrematureChannelClosureException || cause instanceof ClosedChannelException )
164
164
return ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ public static <T extends Exception> T trimStackTrace(T e) {
65
65
}
66
66
67
67
public static Throwable getCause (Throwable t ) {
68
- return t .getCause () != null ? t .getCause () : t ;
68
+ Throwable cause = t .getCause ();
69
+ return cause != null ? getCause (cause ) : t ;
69
70
}
70
71
}
You can’t perform that action at this time.
0 commit comments