From c39826bd16f355cab29dda4363354f26dec40b35 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 15 May 2021 19:15:40 +0200 Subject: [PATCH] kill ssh session when closing tab - fixes #3207 --- terminus-ssh/src/api.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index 842c3184..2b2c462e 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -379,6 +379,8 @@ export class SSHSession extends BaseSession { async destroy (): Promise { this.serviceMessage.complete() this.proxyCommandStream?.destroy() + this.kill() + this.ssh.end() await super.destroy() }