do not close the connection during ServerConn.Read

This commit is contained in:
aler9
2020-12-08 22:11:53 +01:00
parent 081e28ee38
commit d9a149b0ec
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ import (
)
func handleConn(conn *gortsplib.ServerConn) {
defer conn.Close()
onRequest := func(req *base.Request) (*base.Response, error) {
switch req.Method {
case base.Options:

View File

@@ -126,7 +126,6 @@ outer:
}
}
sc.nconn.Close()
done <- errRet
}