Skip to content

Commit

Permalink
fix(bluetooth): await reset before unlocking adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mKeRix committed Oct 18, 2020
1 parent 501a65c commit c026ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/bluetooth/bluetooth.service.ts
Expand Up @@ -72,7 +72,7 @@ export class BluetoothService {
this.logger.debug(
`Query of ${address} reached scan time limit, resetting hci${this.classicConfig.hciDeviceId}`
);
this.resetHciDevice(adapterId);
await this.resetHciDevice(adapterId);

// when not reachable a scan runs for 6s, so lower time limits might not be an error
if (this.classicConfig.scanTimeLimit >= 6) {
Expand Down

0 comments on commit c026ac3

Please sign in to comment.