mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: make sure that OnFrame() is never called after OnSessionClose()
This commit is contained in:
@@ -332,6 +332,9 @@ func (ss *ServerSession) run() {
|
||||
for sc := range ss.conns {
|
||||
if sc == ss.tcpConn {
|
||||
sc.Close()
|
||||
|
||||
// make sure that OnFrame() is never called after OnSessionClose()
|
||||
<-sc.done
|
||||
}
|
||||
|
||||
select {
|
||||
|
Reference in New Issue
Block a user