Skip to content

Commit

Permalink
Restore refreshCallback override behaviour #936
Browse files Browse the repository at this point in the history
  • Loading branch information
peitschie committed Oct 18, 2022
1 parent 8d574ca commit 216fe2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/android/Peripheral.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,7 @@ public void onServicesDiscovered(BluetoothGatt gatt, int status) {
if (refreshCallback != null) {
refreshCallback.sendPluginResult(result);
refreshCallback = null;
}

if (connectCallback != null) {
} else if (connectCallback != null) {
connectCallback.sendPluginResult(result);
}
} else {
Expand Down

0 comments on commit 216fe2e

Please sign in to comment.