Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #184 from ciaranj/fix_config_js_watcher

Fixes Issues #182 - Broken config file watching.
  • Loading branch information...
commit 5a4609f3b4ba9670ef23e319f8715d2ed543011f 2 parents 0ad4dbd + ad011af
@mrtazz mrtazz 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.