mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-01 04:02:40 +00:00
api: allow using paths/list when a path is being deleted (#1849)
This commit is contained in:
parent
1889641c8c
commit
65f617aa7c
@ -507,11 +507,9 @@ func (pm *pathManager) apiPathsList() (*apiPathsList, error) {
|
||||
|
||||
for _, pa := range res.paths {
|
||||
item, err := pa.apiPathsGet(pathAPIPathsGetReq{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if err == nil {
|
||||
res.data.Items = append(res.data.Items, item)
|
||||
}
|
||||
|
||||
res.data.Items = append(res.data.Items, item)
|
||||
}
|
||||
|
||||
sort.Slice(res.data.Items, func(i, j int) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user