]> 127.0.0.1 Git - part/.git/commitdiff
fix v0.3.36 v0.5.36
authorqydysky <qydysky@foxmail.com>
Fri, 25 Jun 2021 02:07:15 +0000 (10:07 +0800)
committerqydysky <qydysky@foxmail.com>
Fri, 25 Jun 2021 02:07:15 +0000 (10:07 +0800)
Exec.go

diff --git a/Exec.go b/Exec.go
index 32c66740914b713f06d718e23e3bec7198aac4fa..96377742038bfcd2dac25a88ad40acf1fb249d48 100644 (file)
--- a/Exec.go
+++ b/Exec.go
@@ -21,6 +21,7 @@ func (this *lexec) Start(pro ...*exec.Cmd){
 
 func (this *lexec) Stop(pro ...*exec.Cmd){
     for i := range pro {
+        if pro[i] == nil {continue}
         pro[i].Process.Kill()
     }
 }
\ No newline at end of file