Prevent fs.watch from starting node twice if it gets triggered multiple times. #114

Merged
merged 1 commit into from Jul 7, 2012
View
@@ -145,6 +145,7 @@ watchFileChecker.check = function(cb) {
return;
}
fs.watch(watchFileName, function(event, filename) {
+ if (watchFileChecker.changeDetected) { return; }
watchFileChecker.changeDetected = true;
cb(true);
});