mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-23 13:13:49 +03:00
fixed infinite spinner loop
This commit is contained in:
parent
c2e7241a64
commit
9bd7a92bf8
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user