We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c6a72 commit b1ba968Copy full SHA for b1ba968
1 file changed
OpenFlow/src/amqpwrapper.ts
@@ -349,7 +349,7 @@ export class amqpwrapper extends events.EventEmitter {
349
}
350
// q.ExchangeOptions = new Object((ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
351
q.ExchangeOptions = Object.assign({}, (ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
352
- if (exchange != Config.amqp_dlx) q.ExchangeOptions.autoDelete = true;
+ if (exchange != Config.amqp_dlx && exchange != "openflow") q.ExchangeOptions.autoDelete = true;
353
q.exchange = exchange; q.algorithm = algorithm; q.routingkey = routingkey; q.callback = callback;
354
const _ok = await this.channel.assertExchange(q.exchange, q.algorithm, q.ExchangeOptions);
355
let AssertQueueOptions = null;
0 commit comments