mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
server: when a session is closed, close also its tcp connection
This commit is contained in:
@@ -351,6 +351,9 @@ func (ss *ServerSession) run() {
|
||||
}
|
||||
|
||||
for sc := range ss.conns {
|
||||
if sc == ss.tcpConn {
|
||||
sc.Close()
|
||||
}
|
||||
sc.sessionRemove <- ss
|
||||
}
|
||||
ss.connsWG.Wait()
|
||||
|
Reference in New Issue
Block a user