mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: allow to call client.Close() always
This commit is contained in:
@@ -381,6 +381,9 @@ func TestClientRead(t *testing.T) {
|
||||
<-frameRecv
|
||||
conn.Close()
|
||||
<-done
|
||||
|
||||
<-conn.ReadFrames(func(id int, typ StreamType, payload []byte) {
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1232,6 +1235,9 @@ func TestClientReadPause(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
<-done
|
||||
|
||||
<-conn.ReadFrames(func(id int, typ StreamType, payload []byte) {
|
||||
})
|
||||
|
||||
_, err = conn.Play()
|
||||
require.NoError(t, err)
|
||||
|
||||
|
Reference in New Issue
Block a user