Skip to content

Commit

Permalink
delay watchers
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Jun 14, 2016
1 parent b206aef commit f9134a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Acetate.js
Expand Up @@ -265,8 +265,10 @@ class Acetate {
}); });


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


this.debug('Starting watcher.'); this.debug('Starting watcher.');
Expand Down

0 comments on commit f9134a0

Please sign in to comment.