mirror of
https://github.com/eugeny/tabby
synced 2025-12-10 09:45:42 +00:00
ignore screen shutdown errors
This commit is contained in:
@@ -322,7 +322,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
|
|
||||||
async destroy () {
|
async destroy () {
|
||||||
super.destroy()
|
super.destroy()
|
||||||
if (this.session) {
|
if (this.session && this.session.open) {
|
||||||
await this.session.destroy()
|
await this.session.destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,6 +110,10 @@ export class ScreenPersistenceProvider extends SessionPersistenceProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async terminateSession (recoveryId: string): Promise<void> {
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user