client: allow to call client.Close() always

This commit is contained in:
aler9
2021-05-10 17:18:41 +02:00
parent 034eee1c8a
commit f8ef945dae
8 changed files with 1019 additions and 745 deletions

View File

@@ -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)