Skip to content

Commit

Permalink
Ensure debouncer is removed from queue before running callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Mar 13, 2019
1 parent 3b16476 commit a23ac64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
/**
Expand Down

0 comments on commit a23ac64

Please sign in to comment.