Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes Issues #182 - Broken config file watching.

Implements fix as suggested by Peter Schuster and Daniel
Schauenberg in comment thread.

Signed-off-by: ciaranj <ciaranj@gmail.com>
  • Loading branch information...
commit ad011afb0dc7503f9d729c30534fe270e7a81e54 1 parent 3edcf08
@ciaranj ciaranj authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/config.js
View
4 lib/config.js
@@ -21,8 +21,8 @@ var Configurator = function (file) {
this.updateConfig();
- fs.watch(file, function (curr, prev) {
- if (curr.ino != prev.ino) { self.updateConfig(); }
+ fs.watch(file, function (event, filename) {
+ if (event == 'change') { self.updateConfig(); }
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.