From 965cbcc9798ca54dcadf4e78fc91839fd4d4471f Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 19 Jan 2017 16:16:11 +0100 Subject: [PATCH] Fix memory leak in MultiUserChat.enter(MucEnterConfiguration) Thanks to Aleksander Melnichnikov for reporting this issue. Fixes SMACK-745 --- .../main/java/org/jivesoftware/smackx/muc/MultiUserChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java index ea823accc..81e45e329 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java @@ -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;