Skip to content

Commit

Permalink
fix(transport): clear locks also on device disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Feb 10, 2025
1 parent 78d3bbf commit 00b8878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/transport/src/api/usb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export class UsbApi extends AbstractApi {

const index = this.devices.findIndex(d => d.path === device.serialNumber);
if (index > -1) {
delete this.lock[this.devices[index].path];
this.devices.splice(index, 1);
this.emit('transport-interface-change', this.devicesToDescriptors());
} else {
Expand Down

0 comments on commit 00b8878

Please sign in to comment.