I'm having the same issue as #438 where I am getting:
java.lang.IllegalStateException: Too many receivers, total of 1000
presumably after my app has made 1000 connections. Once it gets into this state, I have to kill the app before I can make any more connections. I am using one BleManager instance per connection, but I am using setAutoConnect(false).
From a cursory look at the code, it seems like it may be the case that the BleManager.disconnect() request does eventually result in BleManagerHandler.close() being called, but not BleManager.close(), which is where the receiver in question is unregistered (BleManager.mPairingRequestBroadcastReceiver). Am I reading that correctly?
Thank you for making such an incredibly helpful library!
I'm having the same issue as #438 where I am getting:
presumably after my app has made 1000 connections. Once it gets into this state, I have to kill the app before I can make any more connections. I am using one
BleManagerinstance per connection, but I am usingsetAutoConnect(false).From a cursory look at the code, it seems like it may be the case that the
BleManager.disconnect()request does eventually result inBleManagerHandler.close()being called, but notBleManager.close(), which is where the receiver in question is unregistered (BleManager.mPairingRequestBroadcastReceiver). Am I reading that correctly?Thank you for making such an incredibly helpful library!