From e4362560345d86cde76b969d00b828922422c747 Mon Sep 17 00:00:00 2001 From: qydysky Date: Fri, 25 Jun 2021 10:07:15 +0800 Subject: [PATCH] fix --- Exec.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2