mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 11:32:27 +00:00
Include data track susbcriptions in WaitForSubscription. (#4727)
This commit is contained in:
1 parent
2a9bb36ee0
commit
52ef3cd649
3 files changed
+50
-42
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user