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

Fix memory leak in MultiUserChat.enter(MucEnterConfiguration)

Thanks to Aleksander Melnichnikov for reporting this issue.

Fixes SMACK-745
This commit is contained in:
Florian Schmaus 2017-01-19 16:16:11 +01:00
parent e5980641c0
commit 965cbcc979

View file

@ -331,7 +331,7 @@ public class MultiUserChat {
try {
presence = connection.createStanzaCollectorAndSend(responseFilter, joinPresence).nextResultOrThrow(conf.getTimeout());
}
catch (InterruptedException | NoResponseException | XMPPErrorException e) {
catch (NotConnectedException | InterruptedException | NoResponseException | XMPPErrorException e) {
// Ensure that all callbacks are removed if there is an exception
removeConnectionCallbacks();
throw e;