Skip to content

Commit 1a2388a

Browse files
committed
fix goroutine leak
1 parent d8668e7 commit 1a2388a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/command/beacons/watch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func BeaconsWatchCmd(ctx *grumble.Context, con *console.SliverConsoleClient) {
5757
}
5858

5959
func waitForInput() <-chan bool {
60-
done := make(chan bool)
60+
done := make(chan bool, 1)
6161
go func() {
6262
defer close(done)
6363
fmt.Scanf("\n")

0 commit comments

Comments
 (0)