mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 14:05:18 +00:00
Wait for fully established to ensure data channel is ready (#949)
This commit is contained in:
@@ -615,7 +615,7 @@ func (c *RTCClient) ensurePublisherConnected() error {
|
||||
case <-ctx.Done():
|
||||
return fmt.Errorf("could not connect publisher after timeout")
|
||||
case <-time.After(10 * time.Millisecond):
|
||||
if c.publisher.HasEverConnected() {
|
||||
if c.publisherFullyEstablished.Load() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user