Include data track susbcriptions in WaitForSubscription. (#4727)

This commit is contained in:
Raja Subramanian authored and GitHub committed 2026-08-05 13:28:48 +05:30
1 parent 2a9bb36ee0
commit 52ef3cd649
3 files changed
+50 -42

No files matched your search

+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