Skip to content
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...
1 parent 3edcf08 commit ad011afb0dc7503f9d729c30534fe270e7a81e54 @ciaranj committed
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(); }
});
};

0 comments on commit ad011af

Please sign in to comment.
Something went wrong with that request. Please try again.