We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556d20f commit 0ea99acCopy full SHA for 0ea99ac
system.go
@@ -13,6 +13,7 @@ func WaitSignal(fn func(sig os.Signal) bool) {
13
14
for sig := range ch {
15
if !fn(sig) {
16
+ close(ch)
17
break
18
}
19
0 commit comments