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:
Thinkofdeath 2015-05-08 19:39:22 +01:00
parent 88e71ead05
commit f9773a69c3

View File

@ -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 );
} }
} }