Skip to content

Commit 78092f8

Browse files
Grega Podlesekmuscardinus
authored andcommitted
Set this.connectRequest to null after notifying success.
1 parent 41364ab commit 78092f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ble/src/main/java/no/nordicsemi/android/ble/BleManagerHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ private boolean internalConnect(@NonNull final BluetoothDevice device,
744744

745745
if (autoConnect && this.connectRequest != null) {
746746
this.connectRequest.notifySuccess(device);
747+
this.connectRequest = null;
747748
}
748749
return true;
749750
}

0 commit comments

Comments
 (0)