Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Fix #3092: Turn off EventEmitter#maxListeners check for router manage…
Browse files Browse the repository at this point in the history
…ment connection (#3093)
  • Loading branch information
k-wall authored and Ulf Lilleengen committed Aug 23, 2019
1 parent e2c5f01 commit 727e827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/lib/qdr.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ var Router = function (connection, router, agent) {
self.health_check();
}, interval);
}

this.connection.setMaxListeners(0);
this.connection.on('receiver_open', this.ready.bind(this));
this.connection.on('disconnected', this.disconnected.bind(this));
this.connection.on('sender_error', this.on_sender_error.bind(this));
Expand Down

0 comments on commit 727e827

Please sign in to comment.