mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 10:07:38 +01:00
Workaround for kicks
This commit is contained in:
parent
297c8e2c8b
commit
0c5d76b860
@ -162,7 +162,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disconnect(String reason)
|
||||
public synchronized void disconnect(String reason)
|
||||
{
|
||||
if ( clientConnected )
|
||||
{
|
||||
@ -509,6 +509,9 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 0xFF:
|
||||
throw new KickException( new PacketFFKick( packet ).message );
|
||||
}
|
||||
|
||||
while ( !packetQueue.isEmpty() )
|
||||
|
Loading…
Reference in New Issue
Block a user