Disconnect when exception caught

This commit is contained in:
md_5 2013-03-09 17:59:44 +11:00
parent 0ce02251d4
commit 3be83cb5a4
2 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,12 @@ public class DownstreamBridge extends PacketHandler
private final UserConnection con;
private final Server server;
@Override
public void exception(Throwable t) throws Exception
{
con.disconnect( Util.exception( t ) );
}
@Override
public void handle(ByteBuf buf) throws Exception
{

View File

@ -20,6 +20,12 @@ public class UpstreamBridge extends PacketHandler
private final ProxyServer bungee;
private final UserConnection con;
@Override
public void exception(Throwable t) throws Exception
{
con.disconnect( Util.exception( t ) );
}
@Override
public void handle(ByteBuf buf) throws Exception
{