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: speakerstats_component, attempt to index (a nil value)

emrahda33d8a033f7
diff --git a/resources/prosody-plugins/mod_speakerstats_component.lua b/resources/prosody-plugins/mod_speakerstats_component.lua
index 6daa6f0840..96a971482b 100644
--- a/resources/prosody-plugins/mod_speakerstats_component.lua
+++ b/resources/prosody-plugins/mod_speakerstats_component.lua
@@ -40,6 +40,11 @@ function on_message(event)
log("warn", "No room found %s", roomAddress);
return false;
end
+
+ if not room.speakerStats then
+ log("warn", "No speakerStats found for %s", roomAddress);
+ return false;
+ end
local roomSpeakerStats = room.speakerStats;
local from = event.stanza.attr.from;
@@ -187,6 +192,10 @@ function occupant_leaving(event)
if is_healthcheck_room(room.jid) then
return;
end
+
+ if not room.speakerStats then
+ return;
+ end
local occupant = event.occupant;