mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
Include data track susbcriptions in WaitForSubscription. (#4727)
This commit is contained in:
@@ -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