From: qydysky Date: Fri, 25 Jun 2021 02:07:15 +0000 (+0800) Subject: fix X-Git-Tag: v0.3.36 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=e4362560345d86cde76b969d00b828922422c747;p=part%2F.git fix --- diff --git a/Exec.go b/Exec.go index 32c6674..9637774 100644 --- 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