Skip to content
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

feature/23-clear-queue - Clear OperationQueue on disconnection #49

Merged
merged 5 commits into from
Jun 10, 2020

Conversation

sureshjoshi
Copy link
Member

@sureshjoshi sureshjoshi commented Jun 10, 2020

Closes issue #23
Related to issue #27

There are some edge cases that I've recently run into where the execute function fires, the peripheral disconnects, and then we never get the callback. Then, we can't re-discover services, because there is an unclearable item in the front of the queue

Currently, isCancelled is checked only BEFORE the operation starts executing, not during.

@sureshjoshi sureshjoshi linked an issue Jun 10, 2020 that may be closed by this pull request
@sureshjoshi sureshjoshi merged commit c24166a into develop Jun 10, 2020
@sureshjoshi sureshjoshi deleted the feature/23-clear-queue branch June 10, 2020 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear queue on Disconnection
1 participant