From fe420ebe28e7ecf98cd784bbf97c3a8bcb385086 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 8 Jul 2022 10:07:56 +0200 Subject: [PATCH] Return empty state and report if process is invalid --- restream/restream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restream/restream.go b/restream/restream.go index 3eaf5cdb..7a66eafa 100644 --- a/restream/restream.go +++ b/restream/restream.go @@ -1059,7 +1059,7 @@ func (r *restream) GetProcessState(id string) (*app.State, error) { } if !task.valid { - return state, fmt.Errorf("invalid process definition") + return state, nil } status := task.ffmpeg.Status() @@ -1120,7 +1120,7 @@ func (r *restream) GetProcessLog(id string) (*app.Log, error) { } if !task.valid { - return &app.Log{}, fmt.Errorf("invalid process definition") + return &app.Log{}, nil } log := &app.Log{}