Skip to content

Commit 7bc581d

Browse files
author
Marco Crespi
committed
fix: Use new mutex cancel interface on dispose
1 parent 9e2380b commit 7bc581d

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

lib/bindings/hci/gatt/remote/Gatt.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/bindings/hci/gatt/remote/Gatt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/bindings/hci/misc/Hci.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/bindings/hci/misc/Hci.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bindings/hci/gatt/remote/Gatt.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export class HciGattRemote extends GattRemote {
5555
}
5656

5757
public dispose() {
58+
this.mutex.cancel();
59+
5860
if (this.currentCmd) {
5961
this.currentCmd.onResponse(null, 'GATT disposed');
6062
this.currentCmd = null;

src/bindings/hci/misc/Hci.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ export class Hci extends TypedEmitter<HciEvents> {
289289
};
290290

291291
public dispose() {
292+
this.mutex.cancel();
293+
292294
if (this.socketTimer) {
293295
clearInterval(this.socketTimer);
294296
this.socketTimer = null;

0 commit comments

Comments
 (0)