-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Disconnect on peripheral should clear all outstanding events #16
Comments
We have observed the same issue with disconnects during If a device disconnect happens during this procedure, it does never return/waits forever. One thing that we have seen is, that there are no callbacks if not all services where found: However in some instances the disconnect does not receive a callback because the event |
Are you calling disconnect while This is something that is easy to fix |
No, the disconnect happens for other reasons and while talking to a real device. We have found some rather ugly workarounds to get the events handled. But I am still cleaning up. It would maybe be good to discuss it, before proposing it as a patch. |
@stoprocent+noble+1.19.1.patch This is a shot against the last version. If you think it makes sense I can open a PR as well. |
I got an issue with duplicate code execution when a disconnect happens while being in "connect logic".
Here is what happens
So a disconnect should clear all outstanding events on the peripheral that might be and ideally also fail all promises
The text was updated successfully, but these errors were encountered: