mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-23 14:59:41 +08:00
stop ssh session after connection errors
This commit is contained in:
parent
11c8ca6582
commit
21f33618d4
@ -105,6 +105,7 @@ export class SSHSession extends BaseSession {
|
|||||||
this.shell = await this.openShellChannel({ x11: this.connection.x11 })
|
this.shell = await this.openShellChannel({ x11: this.connection.x11 })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.emitServiceMessage(colors.bgRed.black(' X ') + ` Remote rejected opening a shell channel: ${err}`)
|
this.emitServiceMessage(colors.bgRed.black(' X ') + ` Remote rejected opening a shell channel: ${err}`)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.shell.on('greeting', greeting => {
|
this.shell.on('greeting', greeting => {
|
||||||
|
Loading…
Reference in New Issue
Block a user