Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #38 from aredridel/fix-dequeue
Browse files Browse the repository at this point in the history
Fix dequeue of pending stats
  • Loading branch information
aredridel committed Jul 29, 2015
2 parents 0f5bf0c + 467e09e commit fd4859d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,9 @@ function limitStat(path, cb) {
return function (err, stat) {
cb(err, stat);
var next = pendingStats.shift();
numPendingStats--;
if (next) {
fs.stat(next[0], dequeue(next[1]));
} else {
numPendingStats--;
}
};
}
Expand Down

0 comments on commit fd4859d

Please sign in to comment.