From 38eb894d73132dfc3d3c8ec57d42f57a49cef54b Mon Sep 17 00:00:00 2001 From: Jason Lunz Date: Mon, 20 Dec 2021 13:33:13 -0700 Subject: [PATCH] prevent leaking any blocked goroutines on error --- pkg/cmd/codespace/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index d8ee955f1..18730a176 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -199,7 +199,7 @@ func (a *App) printOpenSSHConfig(ctx context.Context, opts configOptions, execut err error } - sshUsers := make(chan sshResult) + sshUsers := make(chan sshResult, len(csList)) var wg sync.WaitGroup var status error for _, cs := range csList {