Skip to content

Commit

Permalink
fix memory leak error on deferredEvaluationEventEmitter
Browse files Browse the repository at this point in the history
  • Loading branch information
maartyman committed Nov 25, 2024
1 parent 694082e commit 87ff883
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class ActorResourceWatchDeferred extends ActorResourceWatch {
public async run(action: IActionResourceWatch): Promise<IActorResourceWatchOutput> {
const eventsSource: IResourceWatchEventEmitter = action.context
.getSafe(KeysResourceWatch.deferredEvaluationEventEmitter);
eventsSource.setMaxListeners(eventsSource.getMaxListeners() + 1);
const outputEvents: IResourceWatchEventEmitter = new EventEmitter();

const emitUpdate = (): void => {
Expand Down

0 comments on commit 87ff883

Please sign in to comment.