mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 01:57:55 +01:00
Check channel active before adding handlers. #1489
This commit is contained in:
parent
918d7229c2
commit
cc3a8c067e
@ -584,7 +584,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
|
||||
public void setCompressionThreshold(int compressionThreshold)
|
||||
{
|
||||
if ( this.compressionThreshold == -1 )
|
||||
if ( ch.getHandle().isActive() && this.compressionThreshold == -1 )
|
||||
{
|
||||
this.compressionThreshold = compressionThreshold;
|
||||
unsafe.sendPacket( new SetCompression( compressionThreshold ) );
|
||||
|
Loading…
Reference in New Issue
Block a user