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:
Raja Subramanian
2023-09-17 14:00:09 +05:30
committed by GitHub
parent 97048a923c
commit 019ad88b08
4 changed files with 93 additions and 1 deletions
+4
View File
@@ -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