Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @Override
  2. public void channelInactive(final ChannelHandlerContext ctx) {
  3. final InetSocketAddress inetSocketAddress = ((InetSocketAddress) ctx.channel().remoteAddress());
  4. if (!ctx.channel().isActive() && !ctx.channel().isOpen() && !ctx.channel().isWritable() && inetSocketAddress != null) {
  5. ApiCore.instance.getCloudLogger().info("Channel [Host=" + inetSocketAddress.getAddress().getHostAddress() + "/Port=" + inetSocketAddress.getPort() + "] is disconnected.");
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement