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