Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Added options for conditional queue delete
Browse files Browse the repository at this point in the history
  • Loading branch information
shadyvd authored Feb 15, 2018
1 parent e6f696a commit 91a6bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amqplib_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ AMQPLibAscoltatore.prototype.close = function close(done) {
};

this._client_conn.on("close", doClose);
this._channel.deleteQueue(this._queue);
this._channel.deleteQueue(this._queue, { "ifUnused": true, "ifEmpty": true });
this._channel.close();

this._client_conn.close();
Expand Down

0 comments on commit 91a6bd4

Please sign in to comment.