From fa6242e565b4291014ab444ca1617a0120c7e3a9 Mon Sep 17 00:00:00 2001 From: 1nv8rZim Date: Fri, 8 Sep 2023 20:37:02 -0400 Subject: [PATCH] closed doneChan after check complete --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 08eb796..38ee395 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,7 @@ func Run(ctx context.Context, target string, command string, expectedOutput stri // run ping go func() { + defer close(doneChan) doneChan <- pinger.Run() }()