mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 04:28:00 +01:00
[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")
This commit is contained in:
parent
8c359eed16
commit
fbd5761296
1 changed files with 1 additions and 1 deletions
|
@ -1133,7 +1133,7 @@ public class MultiUserChat {
|
||||||
if (!removed) return;
|
if (!removed) return;
|
||||||
int currentCount = presenceInterceptorCount.decrementAndGet();
|
int currentCount = presenceInterceptorCount.decrementAndGet();
|
||||||
if (currentCount == 0) {
|
if (currentCount == 0) {
|
||||||
connection.removePresenceInterceptor(presenceInterceptor);
|
connection.removePresenceInterceptor(this.presenceInterceptor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue