From 1256ef2c4311d73972a1f40b2991bcae1cd7c077 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 10 Jan 2021 05:17:27 -0500 Subject: [PATCH] fix: close signal channel Closes #29 --- basher.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basher.go b/basher.go index 8106005..e4221ba 100644 --- a/basher.go +++ b/basher.go @@ -298,6 +298,8 @@ func (c *Context) Run(command string, args []string) (int, error) { if err != nil { errChan <- err } + signal.Stop(signals) + close(signals) } } }()