fixed infinite spinner loop

This commit is contained in:
Eugene Pankov
2023-03-18 16:45:47 +01:00
parent c2e7241a64
commit 9bd7a92bf8

View File

@@ -136,6 +136,9 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
stream: { stream: {
write: x => { write: x => {
try { try {
if (!this.frontend) {
return
}
this.writeRaw(x) this.writeRaw(x)
} catch { } catch {
this.spinner.stop() this.spinner.stop()
@@ -556,6 +559,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
/** @hidden */ /** @hidden */
ngOnDestroy (): void { ngOnDestroy (): void {
super.ngOnDestroy() super.ngOnDestroy()
this.stopSpinner()
} }
async destroy (): Promise<void> { async destroy (): Promise<void> {