From d039d76cff047b001071651468a856ac55652be0 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 12 Dec 2021 12:03:01 +0100 Subject: [PATCH] fixed restored local tabs being unresponsive - fixes #5122, fixes #5124, fixes #5101 --- app/lib/pty.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/pty.ts b/app/lib/pty.ts index 0d30e1ec..c671d512 100644 --- a/app/lib/pty.ts +++ b/app/lib/pty.ts @@ -148,7 +148,7 @@ export class PTYManager { }) ipcMain.on('pty:exists', (event, id) => { - event.returnValue = !this.ptys[id]?.exited + event.returnValue = this.ptys[id] && !this.ptys[id].exited }) ipcMain.on('pty:get-pid', (event, id) => {