You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace throwing of IllegalStateException with using onError of the observable. On react-native, you can't try catch native exceptions when an IllegalStateException is used.
@@ -470,7 +474,8 @@ public void isDeviceConnected(String deviceIdentifier,
470
474
OnSuccessCallback<Boolean> onSuccessCallback,
471
475
OnErrorCallbackonErrorCallback) {
472
476
if (rxBleClient == null) {
473
-
thrownewIllegalStateException("BleManager not created when tried to check if device is connected");
477
+
onErrorCallback.onError(newBleError(BleErrorCode.BluetoothManagerDestroyed, "BleManager not created when tried to check if device is connected", null));
0 commit comments