X Tutup
Skip to content

Commit 2ee88da

Browse files
committed
close session on error
1 parent a05541f commit 2ee88da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cmd/codespace/ssh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ func openSSHSession(ctx context.Context, a *App, codespace *api.Codespace, lives
294294
}
295295

296296
if err := <-authkeys; err != nil {
297+
session.Close()
297298
return nil, err
298299
}
299300

0 commit comments

Comments
 (0)
X Tutup