Disconnect when exception caught
This commit is contained in:
parent
0ce02251d4
commit
3be83cb5a4
@ -29,6 +29,12 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
private final UserConnection con;
|
private final UserConnection con;
|
||||||
private final Server server;
|
private final Server server;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exception(Throwable t) throws Exception
|
||||||
|
{
|
||||||
|
con.disconnect( Util.exception( t ) );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(ByteBuf buf) throws Exception
|
public void handle(ByteBuf buf) throws Exception
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,12 @@ public class UpstreamBridge extends PacketHandler
|
|||||||
private final ProxyServer bungee;
|
private final ProxyServer bungee;
|
||||||
private final UserConnection con;
|
private final UserConnection con;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exception(Throwable t) throws Exception
|
||||||
|
{
|
||||||
|
con.disconnect( Util.exception( t ) );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(ByteBuf buf) throws Exception
|
public void handle(ByteBuf buf) throws Exception
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user