Skip to content

Commit

Permalink
fix(watch): suppress event-emitter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif committed Dec 25, 2019
1 parent e8b9758 commit 1ab2dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/volume.ts
Expand Up @@ -2566,6 +2566,7 @@ export class FSWatcher extends EventEmitter {
const parent = this._link.parent;
if (parent) {
// parent.on('child:add', this._onParentChild);
parent.setMaxListeners(parent.getMaxListeners() + 1);
parent.on('child:delete', this._onParentChild);
}

Expand Down

0 comments on commit 1ab2dcb

Please sign in to comment.