Fix segfault on stopping an invalid process
This commit is contained in:
parent
76abe2c19d
commit
4a1131b7c8
1 changed files with 4 additions and 0 deletions
|
|
@ -933,6 +933,10 @@ func (r *restream) stopProcess(id string) error {
|
||||||
return ErrUnknownProcess
|
return ErrUnknownProcess
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if task.ffmpeg == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
status := task.ffmpeg.Status()
|
status := task.ffmpeg.Status()
|
||||||
|
|
||||||
if task.process.Order == "stop" && status.Order == "stop" {
|
if task.process.Order == "stop" && status.Order == "stop" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue