Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void channelInactive(final ChannelHandlerContext ctx) {
- final InetSocketAddress inetSocketAddress = ((InetSocketAddress) ctx.channel().remoteAddress());
- if (!ctx.channel().isActive() && !ctx.channel().isOpen() && !ctx.channel().isWritable() && inetSocketAddress != null) {
- ApiCore.instance.getCloudLogger().info("Channel [Host=" + inetSocketAddress.getAddress().getHostAddress() + "/Port=" + inetSocketAddress.getPort() + "] is disconnected.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement