@stoprocent/bleno 0.12.0 → 0.12.1
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/lib/hci-socket/hci.js
CHANGED
|
@@ -133,7 +133,6 @@ class Hci extends EventEmitter {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
resetBuffers () {
|
|
136
|
-
this._mainHandle = null;
|
|
137
136
|
this._handleAclsInProgress = {};
|
|
138
137
|
this._handleBuffers = {};
|
|
139
138
|
this._aclOutQueue = [];
|
|
@@ -527,7 +526,7 @@ class Hci extends EventEmitter {
|
|
|
527
526
|
if (subEventType === EVT_DISCONN_COMPLETE) {
|
|
528
527
|
handle = data.readUInt16LE(4);
|
|
529
528
|
debug('\t\thandle = ' + handle);
|
|
530
|
-
if (handle
|
|
529
|
+
if (this._handleAclsInProgress[handle] === undefined) {
|
|
531
530
|
debug('\tignoring event because handle is unknown to bleno.');
|
|
532
531
|
debug('This might be OK in a multi role scenario in which the handle is part of a noble connection.');
|
|
533
532
|
return;
|
|
@@ -543,7 +542,6 @@ class Hci extends EventEmitter {
|
|
|
543
542
|
Controller for the returned Handle have been flushed, and that the
|
|
544
543
|
corresponding data buffers have been freed. */
|
|
545
544
|
delete this._handleAclsInProgress[handle];
|
|
546
|
-
this._mainHandle = null;
|
|
547
545
|
const aclOutQueue = [];
|
|
548
546
|
let discarded = 0;
|
|
549
547
|
for (const i in this._aclOutQueue) {
|
|
@@ -789,7 +787,6 @@ class Hci extends EventEmitter {
|
|
|
789
787
|
debug('\t\t\tsupervision timeout = ' + supervisionTimeout);
|
|
790
788
|
debug('\t\t\tmaster clock accuracy = ' + masterClockAccuracy);
|
|
791
789
|
|
|
792
|
-
this._mainHandle = handle;
|
|
793
790
|
this._handleAclsInProgress[handle] = 0;
|
|
794
791
|
|
|
795
792
|
this.emit('leConnComplete', status, handle, role, addressType, address, interval, latency, supervisionTimeout, masterClockAccuracy);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|