Prevent subscribe renegotiation if tracks will be resumed. (#781)

This commit is contained in:
Raja Subramanian
2022-06-24 00:06:37 +05:30
committed by GitHub
parent 667ff4eba4
commit 20512151c6
8 changed files with 79 additions and 56 deletions
+1 -1
View File
@@ -664,7 +664,7 @@ func (p *ParticipantImpl) Close(sendLeave bool, reason types.ParticipantCloseRea
})
}
p.UpTrackManager.Close()
p.UpTrackManager.Close(!sendLeave)
p.pendingTracksLock.Lock()
p.pendingTracks = make(map[string]*pendingTrackInfo)