Skip to content

Commit

Permalink
Merge pull request #83 from Automattic/fix/max-listeners
Browse files Browse the repository at this point in the history
fix: pass `Infinity` instead of `0` to `setMaxListeners()`
  • Loading branch information
sjinks authored Aug 19, 2024
2 parents 9d8d4b8 + 7746ea9 commit 3ecb5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ class AsyncEvents extends EventEmitter {
};

// Set our maxListeners to something more reasonable for lando
AsyncEvents.prototype.setMaxListeners(0);
AsyncEvents.prototype.setMaxListeners(Infinity);

module.exports = AsyncEvents;

0 comments on commit 3ecb5d6

Please sign in to comment.