Skip to content

Commit

Permalink
Check channel active before adding handlers. #1489
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Jun 6, 2015
1 parent 918d722 commit cc3a8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/src/main/java/net/md_5/bungee/UserConnection.java
Expand Up @@ -584,7 +584,7 @@ public String getExtraDataInHandshake()

public void setCompressionThreshold(int compressionThreshold)
{
if ( this.compressionThreshold == -1 )
if ( ch.getHandle().isActive() && this.compressionThreshold == -1 )
{
this.compressionThreshold = compressionThreshold;
unsafe.sendPacket( new SetCompression( compressionThreshold ) );
Expand Down

0 comments on commit cc3a8c0

Please sign in to comment.