mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-11-01 11:32:42 +08:00
allow onDemandCmd when path is 'all'
This commit is contained in:
9
main.go
9
main.go
@@ -333,6 +333,7 @@ outer:
|
||||
path.publisherRemove()
|
||||
|
||||
if !path.permanent {
|
||||
path.onClose()
|
||||
delete(p.paths, evt.client.pathName)
|
||||
}
|
||||
}
|
||||
@@ -527,6 +528,10 @@ outer:
|
||||
}
|
||||
}()
|
||||
|
||||
for _, p := range p.paths {
|
||||
p.onClose()
|
||||
}
|
||||
|
||||
p.serverRtsp.close()
|
||||
|
||||
for _, s := range p.sources {
|
||||
@@ -544,10 +549,6 @@ outer:
|
||||
<-c.done
|
||||
}
|
||||
|
||||
for _, p := range p.paths {
|
||||
p.onClose()
|
||||
}
|
||||
|
||||
if p.metrics != nil {
|
||||
p.metrics.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user