Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #114 from dylanmcd/patch-5

Prevent fs.watch from starting node twice if it gets triggered multiple times.
  • Loading branch information...
commit 0b7bd87843f3b1e6b5b1243b3919a11cfb1b61c9 2 parents 904b224 + b3e3b07
@remy authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  nodemon.js
View
1  nodemon.js
@@ -145,6 +145,7 @@ watchFileChecker.check = function(cb) {
return;
}
fs.watch(watchFileName, function(event, filename) {
+ if (watchFileChecker.changeDetected) { return; }
watchFileChecker.changeDetected = true;
cb(true);
});
Please sign in to comment.
Something went wrong with that request. Please try again.