fix: 重新下发时清空旧识别单元避免重复
This commit is contained in:
parent
139d668b77
commit
c52fc4c819
@ -400,6 +400,7 @@ func (s *AutoConfigService) BuildPipeline(req AutoConfigRequest, deploy bool) (*
|
||||
}
|
||||
|
||||
// ---- 4. Create recognition units for each video source ----
|
||||
editor.Instances = editor.Instances[:0] // clear previous instances on re-deploy
|
||||
for _, srcName := range cleanSources {
|
||||
unitName := deriveSafeInstanceName(srcName)
|
||||
inst := ConfigProfileInstanceEditor{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user