Skip to content

Commit

Permalink
this is my addition
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Sep 16, 2016
1 parent 4e6655c commit ad9896f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,15 @@ 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);
}
}
});
channel.pipeline().addLast("[OUTPUT] Exception Handler", new ChannelInboundHandlerAdapter() {
@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);
}
}
});
Expand Down

0 comments on commit ad9896f

Please sign in to comment.