SHARE
TWEET

Untitled

a guest Dec 8th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top