mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +00:00
fixed infinite spinner loop
This commit is contained in:
@@ -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> {
|
||||||
|
Reference in New Issue
Block a user