Skip to content

Commit

Permalink
Merge pull request #36 from shawnchin/jibri-autostart-fix-1
Browse files Browse the repository at this point in the history
jibri_autostart: handle occupant leaving soon after join
  • Loading branch information
emrahcom authored Nov 27, 2024
2 parents ecfdcdc + 6bd4d97 commit 19a5e1b
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 19a5e1b

Please sign in to comment.