diff --git a/restream/restream.go b/restream/restream.go index 7a66eafa..94efa8d2 100644 --- a/restream/restream.go +++ b/restream/restream.go @@ -933,6 +933,10 @@ func (r *restream) stopProcess(id string) error { return ErrUnknownProcess } + if task.ffmpeg == nil { + return nil + } + status := task.ffmpeg.Status() if task.process.Order == "stop" && status.Order == "stop" {