mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-17 22:28:15 +01:00
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
@ -53,18 +53,9 @@ public class ServerConnection implements Server
|
|||||||
public synchronized void disconnect(BaseComponent... reason)
|
public synchronized void disconnect(BaseComponent... reason)
|
||||||
{
|
{
|
||||||
if ( !ch.isClosed() )
|
if ( !ch.isClosed() )
|
||||||
{
|
|
||||||
// TODO: Can we just use a future here?
|
|
||||||
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
|
||||||
ch.getHandle().eventLoop().schedule( new Runnable()
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public void run()
|
|
||||||
{
|
{
|
||||||
ch.getHandle().close();
|
ch.getHandle().close();
|
||||||
}
|
}
|
||||||
}, 100, TimeUnit.MILLISECONDS );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user