react-native-ble-manager 11.6.1 → 11.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -294,12 +294,17 @@ public class Peripheral extends BluetoothGattCallback {
294
294
  public void onServicesDiscovered(BluetoothGatt gatt, int status) {
295
295
  super.onServicesDiscovered(gatt, status);
296
296
  mainHandler.post(() -> {
297
- for (Callback retrieveServicesCallback : retrieveServicesCallbacks) {
298
- WritableMap map = this.asWritableMap(gatt);
299
- retrieveServicesCallback.invoke(null, map);
297
+ try {
298
+ for (Callback retrieveServicesCallback : retrieveServicesCallbacks) {
299
+ WritableMap map = this.asWritableMap(gatt);
300
+ retrieveServicesCallback.invoke(null, map);
301
+ }
302
+ } catch (Exception e) {
303
+ Log.e(BleManager.LOG_TAG, "Error invoking retrieveServicesCallback status=" + status, e);
304
+ } finally {
305
+ retrieveServicesCallbacks.clear();
306
+ completedCommand();
300
307
  }
301
- retrieveServicesCallbacks.clear();
302
- completedCommand();
303
308
  });
304
309
  }
305
310
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ble-manager",
3
- "version": "11.6.1",
3
+ "version": "11.6.2",
4
4
  "description": "A BLE module for react native.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,5 +54,6 @@
54
54
  "react-native": "0.73.6",
55
55
  "rimraf": "4.1.2",
56
56
  "typescript": "4.9.5"
57
- }
57
+ },
58
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
58
59
  }