Browse Source

fixed restored local tabs being unresponsive - fixes #5122, fixes #5124, fixes #5101

Eugene Pankov 4 years ago
parent
commit
d039d76cff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/pty.ts

+ 1 - 1
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) => {