Skip to content

Commit

Permalink
fix: close signal channel
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
Jose Diaz-Gonzalez committed Jan 10, 2021
1 parent 9ffba79 commit 1d6212d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basher.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ func (c *Context) Run(command string, args []string) (int, error) {
if err != nil {
errChan <- err
}
signal.Stop(signals)
close(signals)
}
}
}()
Expand Down

0 comments on commit 1d6212d

Please sign in to comment.