server: close session when there are no conns attached to it

This commit is contained in:
aler9
2021-05-08 15:35:13 +02:00
parent d3361ffd90
commit 028ed2b973
6 changed files with 366 additions and 267 deletions

View File

@@ -935,7 +935,7 @@ func TestServerReadPlayPausePause(t *testing.T) {
func TestServerReadTimeout(t *testing.T) {
for _, proto := range []string{
"udp",
// checking TCP is useless, since there's no timeout when reading with TCP
// there's no timeout when reading with TCP
} {
t.Run(proto, func(t *testing.T) {
sessionClosed := make(chan struct{})