From 466d862caa6b53608fc4f99a745c8d8b36f0ebf8 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 30 Jul 2017 21:03:35 +0200 Subject: [PATCH] tmux fixes --- terminus-terminal/src/tmux.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminus-terminal/src/tmux.ts b/terminus-terminal/src/tmux.ts index dc1eaaa4..3a155db1 100644 --- a/terminus-terminal/src/tmux.ts +++ b/terminus-terminal/src/tmux.ts @@ -166,7 +166,9 @@ export class TMux { } async terminate (id: string): Promise { - this.process.command(`kill-session -t ${id}`) + this.process.command(`kill-session -t ${id}`).catch(() => { + console.debug('Session already killed') + }) } } @@ -203,7 +205,7 @@ export class TMuxPersistenceProvider extends SessionPersistenceProvider { }) return { command: 'tmux', - args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId], + args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId, ';', 'refresh-client'], recoveredTruePID$: truePID$.asObservable(), recoveryId, }