Skip to content

Too many receivers #616

@mmeisel

Description

@mmeisel

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions