Skip to content

Commit a469fc5

Browse files
committed
Exceptions, it turns out, don't fire this direction. Deprecated for 6 years.
1 parent c7b08f1 commit a469fc5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/org/kitteh/irc/client/library/defaults/feature/network/NettyConnection.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import io.netty.channel.ChannelFuture;
3030
import io.netty.channel.ChannelHandlerContext;
3131
import io.netty.channel.ChannelInboundHandlerAdapter;
32-
import io.netty.channel.ChannelOutboundHandlerAdapter;
3332
import io.netty.channel.SimpleChannelInboundHandler;
3433
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
3534
import io.netty.handler.codec.MessageToMessageEncoder;
@@ -218,14 +217,6 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
218217
}
219218
}
220219
});
221-
this.channel.pipeline().addFirst("[OUTPUT] Exception handler", new ChannelOutboundHandlerAdapter() {
222-
@Override
223-
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
224-
if (cause instanceof Exception) {
225-
NettyConnection.this.handleException((Exception) cause);
226-
}
227-
}
228-
});
229220

230221
// Clean up on disconnect
231222
this.channel.closeFuture().addListener(future -> {

0 commit comments

Comments
 (0)