allow onDemandCmd when path is 'all'

This commit is contained in:
aler9
2020-08-30 13:31:46 +02:00
parent d28a14588a
commit e27e807813
4 changed files with 17 additions and 16 deletions

View File

@@ -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()
}