@rxdi/rabbitmq-pubsub 0.7.192 → 0.7.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,7 @@ class RabbitMqSubscriber {
58
58
  this.logger.trace("subscribed to queue '%s' (%s)", queueConfig.name, opts.consumerTag);
59
59
  return (() => __awaiter(this, void 0, void 0, function* () {
60
60
  this.logger.trace("disposing subscriber to queue '%s' (%s)", queueConfig.name, opts.consumerTag);
61
+ yield channel.cancel(opts.consumerTag); // Cancel consumer first
61
62
  yield channel.close();
62
63
  }));
63
64
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/rabbitmq-pubsub",
3
- "version": "0.7.192",
3
+ "version": "0.7.194",
4
4
  "description": "A graphql-subscriptions PubSub Engine using RabbitMQ",
5
5
  "main": "dist/index.js",
6
6
  "repository": {