1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-21 22:02:06 +01:00

core: use addCompressionHandler() instead directly adding to the list

This commit is contained in:
Florian Schmaus 2020-04-08 20:54:05 +02:00
parent eaa94be7e6
commit 5579567572

View file

@ -107,7 +107,7 @@ public final class SmackInitialization {
}
// Add the Java7 compression handler first, since it's preferred
SmackConfiguration.compressionHandlers.add(new Java7ZlibInputOutputStream());
SmackConfiguration.addCompressionHandler(new Java7ZlibInputOutputStream());
XmppCompressionManager.registerXmppCompressionFactory(ZlibXmppCompressionFactory.INSTANCE);