New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot cancel connection with using autoConnect #251
Comments
Yes... this use case may not be supported. |
😢 Do you have any workaround that I could use for the moment ? |
The initial connection, even with |
By If you're talking about |
True... How about using a different |
Firstly, i'm injecting my manager instance at some places in my code, it's not gonna be easy to swap from one instance to another because of this IOC. |
You're right. Cancellation would really be a nice to have feature. I can look at it next week, but it's my last week before 3-month leave, so I can't promise much. |
I'm sending all the virtual encouragements I could behind my computer 💪 |
I've started working on this feature now. |
I was connecting with
autoConnect
(but not yet connected) and, at some point, I decide to cancel the pending connection, the disconnection request is correctly enqueued but nothing appends,internalDisconnect
is never called.I'm using the last commit on develop (the one this morning), the cause of the bug seems to be the bool
operationInProgress
set totrue
here ->https://github.com/NordicSemiconductor/Android-BLE-Library/blob/develop/ble/src/main/java/no/nordicsemi/android/ble/BleManagerHandler.java#L2828 causing the disconnection request to be enqueued and but never launched.
The text was updated successfully, but these errors were encountered: