add extra check

This commit is contained in:
richardsonjack 2018-03-14 18:14:09 +10:30
parent 34c8fcd98c
commit 0f8b7c3370
1 changed files with 1 additions and 1 deletions

View File

@ -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 {