@twt-494/nestjs-kafka 6.0.2 → 6.0.3

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.
@@ -36,7 +36,9 @@ let KafkaService = class KafkaService {
36
36
  process.on('SIGINT', this.shutdown);
37
37
  }
38
38
  async shutdown() {
39
- await this.producer.disconnect();
39
+ if (this.producer) {
40
+ await this.producer.disconnect();
41
+ }
40
42
  }
41
43
  async createConsumer(topic, options) {
42
44
  const consumer = this.kafka.consumer({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twt-494/nestjs-kafka",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",