mirror of https://bitbucket.org/ausocean/av.git
add extra check
This commit is contained in:
parent
34c8fcd98c
commit
0f8b7c3370
|
@ -246,7 +246,7 @@ func (r *revidInst) Stop() {
|
|||
r.Log(Info, "Stopping revid!")
|
||||
r.isRunning = false
|
||||
// If a cmd process is running, we kill!
|
||||
if r.cmd != nil {
|
||||
if r.cmd != nil && r.cmd.Process != nil {
|
||||
r.cmd.Process.Kill()
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue