Skip to content

Commit

Permalink
Encerrar o executor e o worker antes de todo o resto
Browse files Browse the repository at this point in the history
  • Loading branch information
dgadelha committed Jan 7, 2025
1 parent 165506e commit 42a4894
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ide/src/app/tab-editor/tab-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 42a4894

Please sign in to comment.