Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@dylanmcd

Fix #110, discussion at #113

@dylanmcd

@remy - Ping, @dsjbirch confirmed this fixes the issue. It's one simple line that won't mess with anything else.

@remy remy merged commit 0b7bd87 into remy:master
@remy
Owner

@dylanmcd cheers for doing that. Pulled and publishing to npm as I write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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);
});
Something went wrong with that request. Please try again.