@autofleet/rabbit 1.0.16 → 1.0.17

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.
package/dist/index.js CHANGED
@@ -26,12 +26,6 @@ class RabbitMq {
26
26
  this.em = new events_1.EventEmitter;
27
27
  this.channel = null;
28
28
  this.connection = null;
29
- process.once('SIGINT', () => {
30
- console.log('Removing channel');
31
- if (this.channel) {
32
- this.channel.close();
33
- }
34
- });
35
29
  }
36
30
  async getConnection() {
37
31
  if (this.connection !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -11,12 +11,6 @@ class RabbitMq {
11
11
  this.em = new EventEmitter;
12
12
  this.channel = null;
13
13
  this.connection = null;
14
- process.once('SIGINT', () => {
15
- console.log('Removing channel');
16
- if(this.channel) {
17
- this.channel.close();
18
- }
19
- });
20
14
  }
21
15
 
22
16
  public ack = async (msg: any) => {