close session on error
This commit is contained in:
parent
a05541f4ed
commit
2ee88da647
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue