Skip to content

Commit

Permalink
fix: add small reconnection delay
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Nov 28, 2016
1 parent 27eb227 commit a6eaefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amqp.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class AMQPTransport extends EventEmitter {

return [consumer, queue];
})
.catch(Errors.ConnectionError, establishConsumer);
.catch(Errors.ConnectionError, () => Promise.delay(500).then(establishConsumer));
}

// make sure we recreate queue and establish consumer on reconnect
Expand Down

0 comments on commit a6eaefd

Please sign in to comment.