From fbd576129681fe8eb75367c30470bba401801263 Mon Sep 17 00:00:00 2001 From: Andrey Volykhin Date: Tue, 30 Aug 2022 07:05:16 +0000 Subject: [PATCH] [muc] Fix removal of the MUC's main presence interceptor On dinamically remove the last existed presence interceptor we also should to remove the MUC's main presence interceptor from the connection. Fixes: 60fee7b ("[muc] Fix Presence interceptors") --- .../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 fb03b3b73..2bddb31e7 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 @@ -1133,7 +1133,7 @@ public class MultiUserChat { if (!removed) return; int currentCount = presenceInterceptorCount.decrementAndGet(); if (currentCount == 0) { - connection.removePresenceInterceptor(presenceInterceptor); + connection.removePresenceInterceptor(this.presenceInterceptor); } }