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

fix: allow cancelling of bluetooth requests #37601

Merged
merged 2 commits into from
Mar 27, 2023
Merged

Conversation

jkleinsc
Copy link
Contributor

@jkleinsc jkleinsc commented Mar 16, 2023

Description of Change

There was an issue where bluetooth requests could not be cancelled when no devices are returned because select-bluetooth-device never fires in that case and the only way to cancel a bluetooth request is to call the callback from select-bluetooth-device with an empty string. This PR fixes that issue by always firing select-bluetooth-device regardless of whether devices are available or not.

Additionally, this PR updates the bluetooth documentation to be more accurate and contain more explanation about how select-bluetooth-device works as well as to update the example fiddle to include logic to cancel a bluetooth request.

Checklist

Release Notes

Notes: Fixed canceling of bluetooth requests when no devices are returned.

@jkleinsc jkleinsc added semver/patch backwards-compatible bug fixes target/22-x-y PR should also be added to the "22-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. labels Mar 16, 2023
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Mar 16, 2023
@jkleinsc jkleinsc merged commit 6a6908c into main Mar 27, 2023
@jkleinsc jkleinsc deleted the fixup-bluetooth-cancel branch March 27, 2023 13:31
@release-clerk
Copy link

release-clerk bot commented Mar 27, 2023

Release Notes Persisted

Fixed canceling of bluetooth requests when no devices are returned.

@trop
Copy link
Contributor

trop bot commented Mar 27, 2023

I was unable to backport this PR to "23-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Mar 27, 2023

I was unable to backport this PR to "22-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. target/22-x-y PR should also be added to the "22-x-y" branch. labels Mar 27, 2023
@trop
Copy link
Contributor

trop bot commented Mar 27, 2023

I have automatically backported this PR to "24-x-y", please check out #37717

@trop trop bot added in-flight/24-x-y merged/24-x-y PR was merged to the "24-x-y" branch and removed target/24-x-y PR should also be added to the "24-x-y" branch. in-flight/24-x-y labels Mar 27, 2023
jkleinsc added a commit that referenced this pull request Mar 27, 2023
* fix: allow cancelling of bluetooth requests

allows cancelling of bluetooth requests when no devices present

* docs: update docs to reflect how bluetooth works.

(cherry picked from commit 6a6908c)
jkleinsc added a commit that referenced this pull request Mar 27, 2023
@trop
Copy link
Contributor

trop bot commented Mar 27, 2023

@jkleinsc has manually backported this PR to "23-x-y", please check out #37720

@trop trop bot removed the in-flight/23-x-y label Mar 28, 2023
jkleinsc added a commit that referenced this pull request Mar 28, 2023
fix: allow cancelling of bluetooth requests (#37601)

(cherry picked from commit 6a6908c)
@trop trop bot added the merged/23-x-y PR was merged to the "23-x-y" branch. label Mar 28, 2023
trop bot added a commit that referenced this pull request Mar 28, 2023
(cherry picked from commit 6a6908c)

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
@trop trop bot added in-flight/22-x-y merged/22-x-y PR was merged to the "22-x-y" branch. and removed in-flight/22-x-y labels Mar 28, 2023
codebytere pushed a commit that referenced this pull request Mar 29, 2023
fix: allow cancelling of bluetooth requests (#37601)

(cherry picked from commit 6a6908c)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/22-x-y PR was merged to the "22-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch semver/patch backwards-compatible bug fixes
Projects
None yet
2 participants