Revert "Add info on registered channels to /bungee to enable users to help identify cause of random timeouts & resource leaks"

This reverts commit b3c34815b0.
This commit is contained in:
md_5 2013-03-18 17:36:57 +11:00
parent 5d3cb452fe
commit a12debf6d0
2 changed files with 0 additions and 15 deletions

View File

@ -4,7 +4,6 @@ import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.netty.HandlerBoss;
public class CommandBungee extends Command
{
@ -18,6 +17,5 @@ public class CommandBungee extends Command
public void execute(CommandSender sender, String[] args)
{
sender.sendMessage( ChatColor.BLUE + "This server is running BungeeCord version " + ProxyServer.getInstance().getVersion() + " by md_5" );
sender.sendMessage( ChatColor.BLUE + "There are currently " + HandlerBoss.registeredChannels + " channels registered" );
}
}

View File

@ -19,7 +19,6 @@ import net.md_5.bungee.packet.PacketHandler;
public class HandlerBoss extends ChannelInboundMessageHandlerAdapter<byte[]>
{
public static volatile int registeredChannels;
private PacketHandler handler;
public void setHandler(PacketHandler handler)
@ -28,18 +27,6 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter<byte[]>
this.handler = handler;
}
@Override
public void channelRegistered(ChannelHandlerContext ctx) throws Exception
{
registeredChannels++;
}
@Override
public void channelUnregistered(ChannelHandlerContext ctx) throws Exception
{
registeredChannels--;
}
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception
{