Do not force reconnect on resume if there is a pending track (#2081)
* Do not force reconnect on resume if there is a pending track * move GetPendingTrack -> LocalParticipant
This commit is contained in:
@@ -581,6 +581,10 @@ func (r *Room) SyncState(participant types.LocalParticipant, state *livekit.Sync
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
// is there a pending track?
|
||||
found = participant.GetPendingTrack(livekit.TrackID(ti.Sid)) != nil
|
||||
}
|
||||
if !found {
|
||||
pLogger.Warnw("unknown track during resume", nil, "trackID", ti.Sid)
|
||||
shouldReconnect = true
|
||||
|
||||
Reference in New Issue
Block a user