Skip to content

Commit 5e3b688

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent 756ed81 commit 5e3b688

File tree

1 file changed

+4
-5
lines changed
  • src/main/java/com/ning/http/client/providers/netty/handler

1 file changed

+4
-5
lines changed

src/main/java/com/ning/http/client/providers/netty/handler/Processor.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,17 @@ public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws
164164
if (cause instanceof IOException) {
165165

166166
// FIXME why drop the original exception and throw a new one?
167-
if (!config.getIOExceptionFilters().isEmpty())
168-
if (requestSender.applyIoExceptionFiltersAndReplayRequest(future, CHANNEL_CLOSED_EXCEPTION, channel))
169-
return;
170-
else {
167+
if (!config.getIOExceptionFilters().isEmpty()) {
168+
if (!requestSender.applyIoExceptionFiltersAndReplayRequest(future, CHANNEL_CLOSED_EXCEPTION, channel)) {
171169
// Close the channel so the recovering can occurs.
172170
try {
173171
channel.close();
174172
} catch (Throwable t) {
175173
// Swallow.
176174
}
177-
return;
178175
}
176+
return;
177+
}
179178
}
180179

181180
// FIXME how does recovery occur?!

0 commit comments

Comments
 (0)