From 9bd7a92bf871ba8e58f76c602ecc2194fae6b429 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 18 Mar 2023 16:45:47 +0100 Subject: [PATCH] fixed infinite spinner loop --- tabby-terminal/src/api/baseTerminalTab.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 9520c441..a23f1f07 100644 --- a/tabby-terminal/src/api/baseTerminalTab.component.ts +++ b/tabby-terminal/src/api/baseTerminalTab.component.ts @@ -136,6 +136,9 @@ export class BaseTerminalTabComponent

extends Bas stream: { write: x => { try { + if (!this.frontend) { + return + } this.writeRaw(x) } catch { this.spinner.stop() @@ -556,6 +559,7 @@ export class BaseTerminalTabComponent

extends Bas /** @hidden */ ngOnDestroy (): void { super.ngOnDestroy() + this.stopSpinner() } async destroy (): Promise {