1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 07:22:07 +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);