Return empty state and report if process is invalid

This commit is contained in:
Ingo Oppermann
2022-07-08 10:07:56 +02:00
parent 612b60256a
commit fe420ebe28

View File

@@ -1059,7 +1059,7 @@ func (r *restream) GetProcessState(id string) (*app.State, error) {
} }
if !task.valid { if !task.valid {
return state, fmt.Errorf("invalid process definition") return state, nil
} }
status := task.ffmpeg.Status() status := task.ffmpeg.Status()
@@ -1120,7 +1120,7 @@ func (r *restream) GetProcessLog(id string) (*app.Log, error) {
} }
if !task.valid { if !task.valid {
return &app.Log{}, fmt.Errorf("invalid process definition") return &app.Log{}, nil
} }
log := &app.Log{} log := &app.Log{}