Skip to content

Commit

Permalink
Fixed Throttler not setting its last executed action timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjclement committed Jun 30, 2015
1 parent ab12dc3 commit ae43068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Throttler.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class Throttler {
if(timeSinceLastExecuted >= this.delay) {
/* It's been at least the given throttleDelay since the last execution, so we can go ahead and execute the top action. */
this._executeTopAction();
this.lastExecuted = Date.now();

/* If we have more actions in the queue, fire up the timer. */
if(this.queue.length) {
Expand Down

0 comments on commit ae43068

Please sign in to comment.