client: use a single goroutine during play / record

This commit is contained in:
aler9
2021-11-12 13:03:38 +01:00
committed by Alessandro Ros
parent f6601580db
commit 0440a926b8
3 changed files with 349 additions and 472 deletions

View File

@@ -1768,9 +1768,6 @@ func TestClientReadPause(t *testing.T) {
<-frameRecv
_, err = c.Pause()
require.NoError(t, err)
<-done
c.ReadFrames()
firstFrame = int32(0)
frameRecv = make(chan struct{})
@@ -1778,12 +1775,6 @@ func TestClientReadPause(t *testing.T) {
_, err = c.Play(nil)
require.NoError(t, err)
done = make(chan struct{})
go func() {
defer close(done)
c.ReadFrames()
}()
<-frameRecv
c.Close()
<-done