Skip to content

Commit

Permalink
Merge pull request #79 from Automattic/update/max-listeners
Browse files Browse the repository at this point in the history
fix: remove limit on event listeners
  • Loading branch information
sjinks authored Aug 18, 2024
2 parents 7cab92e + 712f94a commit 977b6bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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(64);
AsyncEvents.prototype.setMaxListeners(0);

module.exports = AsyncEvents;
1 change: 0 additions & 1 deletion test/events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('events', () => {
const events = new AsyncEvents();
events.should.be.instanceof(AsyncEvents);
events.should.be.an('object').with.property('log');
events.should.have.property('_maxListeners', 64);
events._listeners.should.be.an('array').and.be.empty;
events.should.have.property('_eventsCount', 0);
});
Expand Down

0 comments on commit 977b6bc

Please sign in to comment.