Beispiel #1
0
  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    if (handler != null) {
      handler.disconnected(channel);

      if (!(handler instanceof InitialHandler || handler instanceof PingHandler)) {
        ProxyServer.getInstance().getLogger().log(Level.INFO, "{0} has disconnected", handler);
      }
    }
  }