mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 11:44:43 +00:00
Use participant close reason in remove. (#3639)
This commit is contained in:
+1
-2
@@ -481,8 +481,7 @@ func (r *Room) Join(participant types.LocalParticipant, requestSource routing.Me
|
||||
p.GetLogger().Infow("participant active", fields...)
|
||||
} else if state == livekit.ParticipantInfo_DISCONNECTED {
|
||||
// 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(), types.ParticipantCloseReasonNone)
|
||||
go r.RemoveParticipant(p.Identity(), p.ID(), p.CloseReason())
|
||||
}
|
||||
})
|
||||
participant.OnSubscriberReady(func(p types.LocalParticipant) {
|
||||
|
||||
Reference in New Issue
Block a user