Skip to content

Commit

Permalink
jibri_autostart: handle occupant leaving soon after join
Browse files Browse the repository at this point in the history
The jid from event is only used to lookup occupant data 3 seconds after joining. If user leaves during that window, `nil` is returned from occupant lookup and we see error as posted [here](jitsi/jitsi-meet#15335 (comment)).
  • Loading branch information
shawnchin authored Nov 26, 2024
1 parent ecfdcdc commit 6bd4d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jibri_autostart/mod_jibri_autostart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local function _start_recording(room, session, occupant_jid)
local occupant = room:get_occupant_by_real_jid(occupant_jid)

-- check recording permission
if occupant.role ~= "moderator" then
if occupant == nil or occupant.role ~= "moderator" then
return
elseif
session.jitsi_meet_context_features ~= nil and
Expand Down

0 comments on commit 6bd4d97

Please sign in to comment.