Skip to content

Commit

Permalink
Merged hotfix/queue_callback_error into master
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiKillertO committed Jan 26, 2017
2 parents bdc570b + 2fd0ce9 commit 663293a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Queue {
let action = this._queue.shift();
if (action) {
this._running = true;
new Promise((reject, resolve) => action(resolve)).then(this._next)
new Promise((resolve, reject) => action(resolve)).then(this._next.bind(this));
// action(() => {
// this._next();
// });
Expand Down

0 comments on commit 663293a

Please sign in to comment.