We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a5d4c9 commit 600217bCopy full SHA for 600217b
jicofo-common/src/main/kotlin/org/jitsi/jicofo/xmpp/muc/ChatRoomImpl.kt
@@ -280,6 +280,14 @@ class ChatRoomImpl(
280
// listeners lingering around
281
if (isJoined) {
282
muc.leave()
283
+ } else {
284
+ // If the join attempt timed out the XMPP server might have processed it and created the MUC, and
285
+ // since the XMPP connection is long-lived the MUC will leak.
286
+ val leavePresence = connection.stanzaFactory.buildPresenceStanza()
287
+ .ofType(Presence.Type.unavailable)
288
+ .to(myOccupantJid)
289
+ .build()
290
+ connection.sendStanza(leavePresence)
291
}
292
} catch (e: Exception) {
293
// when the connection is not connected or we get NotConnectedException, this is expected (skip log)
0 commit comments