diff --git a/src/main/java/org/kitteh/irc/client/library/implementation/NettyManager.java b/src/main/java/org/kitteh/irc/client/library/implementation/NettyManager.java index 7c317f499..cb4f69832 100644 --- a/src/main/java/org/kitteh/irc/client/library/implementation/NettyManager.java +++ b/src/main/java/org/kitteh/irc/client/library/implementation/NettyManager.java @@ -340,7 +340,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E this.firstRemove = true; } if (cause instanceof Exception) { - client.getExceptionListener().queue((Exception) cause); + DCCConnection.this.client.getExceptionListener().queue((Exception) cause); } } }); @@ -348,7 +348,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (cause instanceof Exception) { - client.getExceptionListener().queue((Exception) cause); + DCCConnection.this.client.getExceptionListener().queue((Exception) cause); } } });