#2716: Don't attempt to send kick packet during handshake phase

This commit is contained in:
Janmm14 2019-12-01 22:51:16 +01:00 committed by md_5
parent 74a6aa32a2
commit 39ef20b298

View File

@ -562,7 +562,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Override
public void disconnect(final BaseComponent... reason)
{
if ( thisState != State.STATUS && thisState != State.PING )
if ( thisState != State.STATUS && thisState != State.PING && thisState != State.HANDSHAKE )
{
ch.delayedClose( new Kick( ComponentSerializer.toString( reason ) ) );
} else