提交 94217f0b 编写于 作者: E Eugene Pankov

ignore screen shutdown errors

上级 80762e92
......@@ -322,7 +322,7 @@ export class TerminalTabComponent extends BaseTabComponent {
async destroy () {
super.destroy()
if (this.session) {
if (this.session && this.session.open) {
await this.session.destroy()
}
}
......
......@@ -110,6 +110,10 @@ export class ScreenPersistenceProvider extends SessionPersistenceProvider {
}
async terminateSession (recoveryId: string): Promise<void> {
await exec(`screen -S ${recoveryId} -X quit`)
try {
await exec(`screen -S ${recoveryId} -X quit`)
} catch (_) {
// screen has already quit
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册