Include data track susbcriptions in WaitForSubscription. (#4727)

This commit is contained in:
Raja Subramanian
2026-08-05 13:28:48 +05:30
committed by GitHub
parent 2a9bb36ee0
commit 52ef3cd649
3 changed files with 50 additions and 42 deletions
+8
View File
@@ -417,6 +417,14 @@ func (m *SubscriptionManager) WaitUntilSubscribed(timeout time.Duration) error {
break
}
}
if allSubscribed {
for _, sub := range m.dataTrackSubscriptions {
if sub.needsSubscribe() {
allSubscribed = false
break
}
}
}
m.lock.RUnlock()
if allSubscribed {
return nil