Don't send a kick to the server on disconnect
This was dropped from the protocol in 1.6 and was left in bungee by mistake
This commit is contained in:
parent
88e71ead05
commit
f9773a69c3
@ -54,16 +54,7 @@ public class ServerConnection implements Server
|
|||||||
{
|
{
|
||||||
if ( !ch.isClosed() )
|
if ( !ch.isClosed() )
|
||||||
{
|
{
|
||||||
// TODO: Can we just use a future here?
|
ch.getHandle().close();
|
||||||
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
|
||||||
ch.getHandle().eventLoop().schedule( new Runnable()
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public void run()
|
|
||||||
{
|
|
||||||
ch.getHandle().close();
|
|
||||||
}
|
|
||||||
}, 100, TimeUnit.MILLISECONDS );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user