mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +00:00
stop ssh session after connection errors
This commit is contained in:
@@ -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 => {
|
||||||
|
Reference in New Issue
Block a user