Defer RTCP channel close till published tracks are closed (#286)

* Defer RTCP channel close till published tracks are closed

* Check for Close called before closing RTCP channel
This commit is contained in:
Raja Subramanian
2021-12-27 14:17:06 +05:30
committed by GitHub
parent ee99a323d2
commit a47153e50c
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ func (r *RoomManager) StartSession(ctx context.Context, roomName string, pi rout
pv := types.ProtocolVersion(pi.Client.Protocol)
rtcConf := *r.rtcConfig
rtcConf.SetBufferFactory(room.GetBufferFactor())
rtcConf.SetBufferFactory(room.GetBufferFactory())
sid := utils.NewGuid(utils.ParticipantPrefix)
pLogger := rtc.LoggerWithParticipant(room.Logger, pi.Identity, sid)
participant, err = rtc.NewParticipant(rtc.ParticipantParams{