From 00b131da50e852f48ea0c67d389006f7edee4fe1 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Wed, 24 Aug 2022 16:51:43 +0530 Subject: [PATCH] Wait for fully established to ensure data channel is ready (#949) --- test/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/client.go b/test/client/client.go index 52b973493..f3bc175e9 100644 --- a/test/client/client.go +++ b/test/client/client.go @@ -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 } }