#2716: Don't attempt to send kick packet during handshake phase
This commit is contained in:
parent
74a6aa32a2
commit
39ef20b298
@ -562,7 +562,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
@Override
|
@Override
|
||||||
public void disconnect(final BaseComponent... reason)
|
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 ) ) );
|
ch.delayedClose( new Kick( ComponentSerializer.toString( reason ) ) );
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user