Fix segfault on stopping an invalid process
This commit is contained in:
parent
76abe2c19d
commit
4a1131b7c8
@ -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" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user