close session on error

This commit is contained in:
Jason Lunz 2021-12-17 14:42:54 -07:00
parent a05541f4ed
commit 2ee88da647
No known key found for this signature in database
GPG key ID: 88F9FD38589448E9

View file

@ -294,6 +294,7 @@ func openSSHSession(ctx context.Context, a *App, codespace *api.Codespace, lives
}
if err := <-authkeys; err != nil {
session.Close()
return nil, err
}