fix crash in server examples

This commit is contained in:
aler9
2021-05-04 13:09:20 +02:00
committed by Alessandro Ros
parent 44f204d137
commit 5527f4d1f7
2 changed files with 2 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ func main() {
// configure server
s := &gortsplib.Server{
Handler: &serverHandler{},
Handler: &serverHandler{readers: make(map[*gortsplib.ServerSession]struct{})},
TLSConfig: &tls.Config{Certificates: []tls.Certificate{cert}},
}