Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(persistent_lobby): Avoids calling destroy twice.

damencho8d1da83e3c75
diff --git a/resources/prosody-plugins/mod_persistent_lobby.lua b/resources/prosody-plugins/mod_persistent_lobby.lua
index d43cd119a0..0cba0b907a 100644
--- a/resources/prosody-plugins/mod_persistent_lobby.lua
+++ b/resources/prosody-plugins/mod_persistent_lobby.lua
@@ -111,7 +111,8 @@ run_when_component_loaded(main_muc_component_host, function(host_module, host_na
-- Check if room should be destroyed when someone leaves the main room
local main_room = event.room;
- if is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room) then
+ if is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room)
+ or main_room.destroying then
return;
end