未验证 提交 c65469e9 编写于 作者: G GitSquared

🐛 Fix error message after app quit

上级 860557e1
......@@ -290,18 +290,22 @@ class Terminal {
if (!this._closed) {
console.log("Error while tracking TTY working directory: ", e);
this._disableCWDtracking = true;
if (this.renderer) {
try {
this.renderer.send("terminal_channel-"+this.port, "Fallback cwd", opts.cwd || process.env.PWD);
} catch(e) {
// renderer closed
}
}
});
}
if (this.renderer && this._nextTickUpdateProcess) {
if (this.renderer) {
this._nextTickUpdateProcess = false;
try {
this.renderer.send("terminal_channel-"+this.port, "New process", this.tty._file);
} catch(e) {
// renderer closed
}
this._nextTickUpdateProcess = false;
}
}, 1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册