Skip to content

Commit

Permalink
Enable confirm mode on "noDeclare" exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardmo committed Apr 15, 2014
1 parent 940fc5d commit da73f3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/exchange.js
Expand Up @@ -60,6 +60,10 @@ Exchange.prototype._onMethod = function (channel, method, args) {
// For if we want to delete a exchange,
// we dont care if all of the options match.
} else if (this.options.noDeclare) {
if (this.options.confirm) {
this.connection._sendMethod(channel, methods.confirmSelect,
{ noWait: false });
}
this.state = 'open';

if (this._openCallback) {
Expand Down

0 comments on commit da73f3b

Please sign in to comment.