diff --git a/packages/ide/src/app/tab-editor/tab-editor.component.ts b/packages/ide/src/app/tab-editor/tab-editor.component.ts index e238b631..65a36d06 100644 --- a/packages/ide/src/app/tab-editor/tab-editor.component.ts +++ b/packages/ide/src/app/tab-editor/tab-editor.component.ts @@ -219,12 +219,13 @@ export class TabEditorComponent implements OnInit, OnDestroy { } ngOnDestroy() { + this.executor.stop(); + this.worker.abortTranspilation(); this._code$?.unsubscribe(); this._events$?.unsubscribe(); this._stdOut$?.unsubscribe(); this._theme$?.unsubscribe(); this._settings$?.unsubscribe(); - this.executor.stop(); } async runCode() {