Skip to content

Commit

Permalink
Support removing compression
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jan 28, 2025
1 parent 5db96a9 commit 3f487a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public class SFViaCompressionProvider extends CompressionProvider {
public void handlePlayCompression(UserConnection user, int threshold) {
Objects.requireNonNull(user.get(StorableSession.class))
.session()
.setCompression(new CompressionConfig(threshold, new ZlibCompression(), true));
.setCompression(threshold < 0 ? null : new CompressionConfig(threshold, new ZlibCompression(), true));
}
}

0 comments on commit 3f487a0

Please sign in to comment.