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...)
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user