We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9623285 + 136a797 commit 1093c7cCopy full SHA for 1093c7c
android/src/main/java/it/innove/BleManager.java
@@ -972,6 +972,11 @@ public void removeListeners(double count) {
972
973
@Override
974
public void invalidate() {
975
+ try {
976
+ context.unregisterReceiver(mReceiver);
977
+ } catch (Exception e) {
978
+ Log.e(LOG_TAG, "Receiver not registered or already unregistered", e);
979
+ }
980
try {
981
// Disconnect all known peripherals, otherwise android system will think we are still connected
982
// while we have lost the gatt instance
0 commit comments