Skip to content

Commit

Permalink
fix(client): only listen for Session.Mapped once during connect
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 7, 2015
1 parent c4e3e8c commit 0cfd687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amqp_client.js
Expand Up @@ -139,7 +139,7 @@ AMQPClient.prototype.connect = function(url) {
self._session = self._newSession(c);
}

self._session.on(Session.Mapped, function(s) {
self._session.once(Session.Mapped, function(s) {
debug('mapped');
resolve(self);
});
Expand Down

0 comments on commit 0cfd687

Please sign in to comment.