aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0b91791..97f9839 100644
--- a/main.go
+++ b/main.go
@@ -81,7 +81,7 @@ func notifier(ctx context.Context) chan string {
}
func atInterrupt(cancel context.CancelFunc) {
- c := make(chan os.Signal)
+ c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
go func() {
<-c