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

bluezdbus/manager: suppress org.bluez.Error.NotReady when stopping scanner #1147

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Nov 25, 2022

When stopping scanning, we don't want to raise errors if we can be sure that scanning is in fact stopped.

org.bluez.Error.NotReady can be triggered if the Bluetooth adapter is turned off after scanning started, in which case we know that it is not scanning, so it is safe to ignore this error.

…anner

When stopping scanning, we don't want to raise errors if we can be sure
that scanning is in fact stopped.

`org.bluez.Error.NotReady` can be triggered if the Bluetooth adapter
is turned off after scanning started, in which case we know that it
is not scanning, so it is safe to ignore this error.
@dlech dlech merged commit 9cd7205 into develop Nov 28, 2022
@dlech dlech deleted the bluez-fix-scan-stop-exception branch November 28, 2022 23:22
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.

1 participant