From cc3a8c067e34dff330db53fbbbce40d1be4d4944 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 6 Jun 2015 18:41:54 +1000 Subject: [PATCH] Check channel active before adding handlers. #1489 --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index fb437c57..8b4ba82d 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -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 ) );