fix(persistent_lobby): Avoids calling destroy twice.

This commit is contained in:
damencho
2025-11-04 13:42:00 -06:00
committed by Дамян Минков
parent 5453b615f5
commit 8d1da83e3c

View File

@@ -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