Skip to content

Commit

Permalink
fix: Remove reconnection listener when closing the connection manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Šváb committed Sep 5, 2018
1 parent ae89b82 commit eeb6e2b
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 eeb6e2b

Please sign in to comment.