Skip to content

Commit

Permalink
Merge pull request #507 from paulmillr/revert-505-duplicateReady
Browse files Browse the repository at this point in the history
Revert "Avoid calling _emitReady twice in case of a stat error"
  • Loading branch information
paulmillr committed Jul 1, 2016
2 parents fdf8d46 + 9094880 commit 08beb85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fsevents-handler.js
Expand Up @@ -327,6 +327,7 @@ function(path, transform, forceAdd, priorDepth) {
// evaluate what is at the path we're being asked to watch
fs[wh.statMethod](wh.watchPath, function(error, stats) {
if (this._handleError(error) || this._isIgnored(wh.watchPath, stats)) {
this._emitReady();
return this._emitReady();
}

Expand Down

0 comments on commit 08beb85

Please sign in to comment.