Skip to content

Commit

Permalink
Merge pull request #50 from msvab/master
Browse files Browse the repository at this point in the history
Remove reconnection listener when closing the connection manager.
  • Loading branch information
jwalton authored Sep 5, 2018
2 parents bc67320 + eeb6e2b commit ae1f98e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AmqpConnectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default class AmqpConnectionManager extends EventEmitter {
.then(() => {
this._channels = [];
if(this._currentConnection) {
this._currentConnection.removeAllListeners('close');
this._currentConnection.close();
}
this._currentConnection = null;
Expand Down

0 comments on commit ae1f98e

Please sign in to comment.