Skip to content

Commit

Permalink
Forgot to use newAbortController
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Oct 13, 2023
1 parent a9d934d commit df24582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/model/GraphProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export class GraphProcessor {
this.#globals ??= new Map();
this.#ignoreNodes = new Set();

this.#abortController = new AbortController();
this.#abortController = this.#newAbortController();
this.#abortController.signal.addEventListener('abort', () => {
this.#aborted = true;
});
Expand Down Expand Up @@ -1318,7 +1318,7 @@ export class GraphProcessor {
partialOutput?: (node: ChartNode, partialOutputs: Outputs, index: number) => void,
) {
const instance = this.#nodeInstances[node.id]!;
const nodeAbortController = new AbortController();
const nodeAbortController = this.#newAbortController();
this.#nodeAbortControllers.set(`${node.id}-${processId}`, nodeAbortController);
this.#abortController.signal.addEventListener('abort', () => {
nodeAbortController.abort();
Expand Down

0 comments on commit df24582

Please sign in to comment.