Skip to content

Commit 0299480

Browse files
Tweak
1 parent e34ec4b commit 0299480

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/bluetooth-device-wrapper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ export class BluetoothDeviceWrapper implements Logging {
208208
try {
209209
// Fail immediately if disconnect occurs whilst connecting.
210210
await this.raceDisconnectAndTimeout(
211-
BleClient.connect(this.device.deviceId, this.handleDisconnectEvent, {
212-
timeout: connectTimeoutInMs,
213-
}),
211+
BleClient.connect(this.device.deviceId, this.handleDisconnectEvent),
214212
{
215213
actionName: "connect internal",
216214
timeout: connectTimeoutInMs,
@@ -533,6 +531,7 @@ export class BluetoothDeviceWrapper implements Logging {
533531
justBonded = true;
534532
}
535533
await this.connectInternal();
534+
536535
return justBonded;
537536
} else {
538537
// Long timeout as this is the point that the pairing dialog will show.

0 commit comments

Comments
 (0)