Skip to content

Commit 38eb894

Browse files
committed
prevent leaking any blocked goroutines on error
1 parent 932c9da commit 38eb894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/codespace/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (a *App) printOpenSSHConfig(ctx context.Context, opts configOptions, execut
199199
err error
200200
}
201201

202-
sshUsers := make(chan sshResult)
202+
sshUsers := make(chan sshResult, len(csList))
203203
var wg sync.WaitGroup
204204
var status error
205205
for _, cs := range csList {

0 commit comments

Comments
 (0)