fixed localrouter timeout, updated VideoGrant fields
This commit is contained in:
@@ -157,6 +157,10 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
|
||||
"srcParticipant", t.participantId,
|
||||
"destParticipant", participant.ID())
|
||||
if err := participant.PeerConnection().RemoveTrack(sender); err != nil {
|
||||
if err == webrtc.ErrConnectionClosed {
|
||||
// participant closing, can skip removing downtracks
|
||||
return
|
||||
}
|
||||
if _, ok := err.(*rtcerr.InvalidStateError); !ok {
|
||||
logger.Warnw("could not remove remoteTrack from forwarder",
|
||||
"participant", participant.ID(),
|
||||
|
||||
@@ -321,6 +321,7 @@ func (p *ParticipantImpl) Close() error {
|
||||
return p.ctx.Err()
|
||||
}
|
||||
close(p.rtcpCh)
|
||||
p.onICECandidate = nil
|
||||
p.updateState(livekit.ParticipantInfo_DISCONNECTED)
|
||||
p.responseSink.Close()
|
||||
if p.onClose != nil {
|
||||
|
||||
Reference in New Issue
Block a user