mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
fix crash
This commit is contained in:
@@ -860,7 +860,7 @@ func (sc *ServerConn) backgroundRecord() {
|
||||
|
||||
if now.Sub(last) >= sc.conf.ReadTimeout {
|
||||
atomic.StoreInt32(sc.udpTimeout, 1)
|
||||
sc.Close()
|
||||
sc.nconn.Close()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user