From 86f7492edb29c478175f411022f15d1b39b28e5f Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:33:07 -0600 Subject: [PATCH] wip --- packages/generic-utils/src/emitter/emitter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/generic-utils/src/emitter/emitter.ts b/packages/generic-utils/src/emitter/emitter.ts index c8941391f..183742f2f 100644 --- a/packages/generic-utils/src/emitter/emitter.ts +++ b/packages/generic-utils/src/emitter/emitter.ts @@ -28,12 +28,12 @@ export class Emitter { this.maxListenersPerEvent = options?.maxListenersPerEvent ?? 10 } private _callbacks: Partial = {} - private _listenerExceededWarning = false + private _leakWarning = false private _warnIfPossibleMemoryLeak( event: EventName ) { - if (this._listenerExceededWarning) { + if (this._leakWarning) { return } if ( @@ -45,7 +45,7 @@ export class Emitter { event )} has exceeded ${this.maxListenersPerEvent} callbacks. ` ) - this._listenerExceededWarning = true + this._leakWarning = true } }