Use participant close reason in remove. (#3639)

This commit is contained in:
Raja Subramanian
2025-05-05 11:50:53 +05:30
committed by GitHub
parent 58822c26ab
commit 2f002388b6
+1 -2
View File
@@ -481,8 +481,7 @@ func (r *Room) Join(participant types.LocalParticipant, requestSource routing.Me
p.GetLogger().Infow("participant active", fields...) p.GetLogger().Infow("participant active", fields...)
} else if state == livekit.ParticipantInfo_DISCONNECTED { } else if state == livekit.ParticipantInfo_DISCONNECTED {
// remove participant from room // remove participant from room
// participant should already be closed and have a close reason, so NONE is fine here go r.RemoveParticipant(p.Identity(), p.ID(), p.CloseReason())
go r.RemoveParticipant(p.Identity(), p.ID(), types.ParticipantCloseReasonNone)
} }
}) })
participant.OnSubscriberReady(func(p types.LocalParticipant) { participant.OnSubscriberReady(func(p types.LocalParticipant) {