Merge remote-tracking branch 'skrashevich/patch-230328'

This commit is contained in:
Alexey Khit
2023-04-14 06:23:17 +03:00
4 changed files with 30 additions and 26 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
package rtsp
import (
"io"
"net"
"net/url"
"strings"
@@ -213,7 +214,9 @@ func tcpHandler(conn *rtsp.Conn) {
})
if err := conn.Accept(); err != nil {
log.Warn().Err(err).Caller().Send()
if err != io.EOF {
log.Warn().Err(err).Caller().Send()
}
if closer != nil {
closer()
}