From a23ac645619a9ced1dc26ae3ae0a7d742c82f07e Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 12 Mar 2019 18:28:44 -0700 Subject: [PATCH] Ensure debouncer is removed from queue before running callback. --- lib/utils/debounce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/debounce.js b/lib/utils/debounce.js index bd6f6dd7d2..cf4311abbc 100644 --- a/lib/utils/debounce.js +++ b/lib/utils/debounce.js @@ -35,8 +35,8 @@ export class Debouncer { this._callback = callback; this._timer = this._asyncModule.run(() => { this._timer = null; - this._callback(); debouncerQueue.delete(this); + this._callback(); }); } /**