Skip to content

Commit b2bb67c

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent 235b705 commit b2bb67c

File tree

1 file changed

+8
-9
lines changed
  • providers/netty/src/main/java/org/asynchttpclient/providers/netty/handler

1 file changed

+8
-9
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/handler/Processor.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,14 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) throws Excep
145145
if (cause instanceof IOException) {
146146

147147
// FIXME why drop the original exception and throw a new one?
148-
if (!config.getIOExceptionFilters().isEmpty())
149-
if (requestSender.applyIoExceptionFiltersAndReplayRequest(future, CHANNEL_CLOSED_EXCEPTION, channel))
150-
return;
151-
else {
152-
// Close the channel so the recovering can occur
153-
try {
154-
channel.close();
155-
} catch (Throwable t) {
156-
// Swallow.
148+
if (!config.getIOExceptionFilters().isEmpty()) {
149+
if (!requestSender.applyIoExceptionFiltersAndReplayRequest(future, CHANNEL_CLOSED_EXCEPTION, channel)) {
150+
// Close the channel so the recovering can occurs.
151+
try {
152+
channel.close();
153+
} catch (Throwable t) {
154+
// Swallow.
155+
}
157156
}
158157
return;
159158
}

0 commit comments

Comments
 (0)