Do not warn about track not bound if participant is not ready. (#4205)

Analysed half a dozen cases and all of them were due to participant is
not active yet.

Also, some misc logging changes.
This commit is contained in:
Raja Subramanian
2025-12-29 18:16:11 +05:30
committed by GitHub
parent b8ddd0f98c
commit 3606ce542f
4 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ func (m *SubscriptionManager) reconcileSubscription(s *mediaTrackSubscription) {
// check bound status, notify error callback if it's not bound
// if a publisher leaves or closes the source track, SubscribedTrack will be closed as well and it will go
// back to needsSubscribe state
if s.durationSinceStart() > subscriptionTimeout {
if m.params.Participant.IsReady() && s.durationSinceStart() > subscriptionTimeout {
s.logger.Warnw("track not bound after timeout", nil)
s.maybeRecordError(m.params.Telemetry, s.subscriberID, ErrTrackNotBound, false)
m.params.OnSubscriptionError(s.trackID, true, ErrTrackNotBound)