mirror of
https://github.com/livekit/livekit.git
synced 2026-05-15 00:55:32 +00:00
This reverts commit 6d9529431f.
This commit is contained in:
@@ -828,8 +828,9 @@ func (p *ParticipantImpl) AddTrack(req *livekit.AddTrackRequest) {
|
||||
return
|
||||
}
|
||||
|
||||
p.lock.Lock()
|
||||
defer p.lock.Unlock()
|
||||
p.pendingTracksLock.Lock()
|
||||
defer p.pendingTracksLock.Unlock()
|
||||
|
||||
ti := p.addPendingTrackLocked(req)
|
||||
if ti == nil {
|
||||
return
|
||||
@@ -1821,9 +1822,6 @@ func (p *ParticipantImpl) onSubscribedMaxQualityChange(
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) addPendingTrackLocked(req *livekit.AddTrackRequest) *livekit.TrackInfo {
|
||||
p.pendingTracksLock.Lock()
|
||||
defer p.pendingTracksLock.Unlock()
|
||||
|
||||
if req.Sid != "" {
|
||||
track := p.GetPublishedTrack(livekit.TrackID(req.Sid))
|
||||
if track == nil {
|
||||
|
||||
Reference in New Issue
Block a user