@stoprocent/noble 1.18.1 → 1.18.2

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.
@@ -120,7 +120,7 @@ NobleBindings.prototype.init = function () {
120
120
  this._hci.on('disconnComplete', this.onDisconnComplete.bind(this));
121
121
  this._hci.on('encryptChange', this.onEncryptChange.bind(this));
122
122
  this._hci.on('aclDataPkt', this.onAclDataPkt.bind(this));
123
-
123
+
124
124
  this._hci.init();
125
125
 
126
126
  /* Add exit handlers after `init()` has completed. If no adaptor
@@ -134,21 +134,6 @@ NobleBindings.prototype.onSigInt = function () {
134
134
  const sigIntListeners = process.listeners('SIGINT');
135
135
 
136
136
  if (sigIntListeners[sigIntListeners.length - 1] === this.onSigIntBinded) {
137
- // Stop scanning if active
138
- if (this._isScanning) {
139
- this.stopScanning();
140
- }
141
-
142
- // Disconnect all active connections
143
- for (const handle in this._handles) {
144
- if (Object.hasOwn(this._handles, handle)) {
145
- this.disconnect(this._handles[handle]);
146
- }
147
- }
148
-
149
- // Clear connection queue
150
- this._connectionQueue = [];
151
-
152
137
  // we are the last listener, so exit
153
138
  // this will trigger onExit, and clean up
154
139
  process.exit(1);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "name": "@stoprocent/noble",
8
8
  "description": "A Node.js BLE (Bluetooth Low Energy) central library.",
9
- "version": "1.18.1",
9
+ "version": "1.18.2",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/stoprocent/noble.git"
@@ -34,7 +34,7 @@
34
34
  "node-gyp-build": "^4.8.1"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@stoprocent/bluetooth-hci-socket": "^1.4.3"
37
+ "@stoprocent/bluetooth-hci-socket": "^1.4.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@commitlint/cli": "^19.3.0",