Skip to content
Permalink
Browse files

delay watchers

  • Loading branch information...
patrickarlt committed Jun 14, 2016
1 parent b206aef commit f9134a068290ddd3e68ba20efbcb4e21a109872e
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Acetate.js
@@ -265,8 +265,10 @@ class Acetate {
});

this._watcher.on('change', () => {
this.info('Config file changed. Rebuilding configuration.');
this.reload();
setTimeout(() => {
this.info('Config file changed. Rebuilding configuration.');
this.reload();
}, 100);
});

this.debug('Starting watcher.');

0 comments on commit f9134a0

Please sign in to comment.
You can’t perform that action at this time.