Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent fs.watch from starting node twice if it gets triggered multip…

…le times.
  • Loading branch information...
commit b3e3b07ca3b5a258bb9913cbe181a311e82ed1f1 1 parent 904b224
@dylanmcd 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.