Skip to content

Commit

Permalink
fix(reconnect): rejection should only happen when no reconnect left
Browse files Browse the repository at this point in the history
This rejection was occurring after an error, when in reality the
only rejection inside of connection should come from determining
whether we should reconnect or not.
  • Loading branch information
mbroadst committed Jul 15, 2015
1 parent d8738cc commit 47e3a98
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/amqp_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ AMQPClient.prototype.connect = function(url) {

self._connection.on(Connection.ErrorReceived, function(e) {
debug('connection error: ', e);
reject(e);
self.emit(AMQPClient.ErrorReceived, e);
});

Expand Down

0 comments on commit 47e3a98

Please sign in to comment.