more generous sleep workaround in test client, better logging

This commit is contained in:
David Zhao
2021-09-11 23:18:20 -07:00
parent ceea024fdb
commit 976e61f10c
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ func (c *RTCClient) ensurePublisherConnected() error {
case <-time.After(10 * time.Millisecond):
if c.publisherConnected.Get() {
// TODO: pion seem to have a timing issue here. data channel is not actually open at this moment
time.Sleep(10 * time.Millisecond)
time.Sleep(100 * time.Millisecond)
return nil
}
}