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 _wait_removed completion on invalid object path #47

Conversation

arthur-proglove
Copy link
Collaborator

@arthur-proglove arthur-proglove commented Apr 25, 2024

The _wait_removed method registers the "InterfacesRemoved" callback on the adapter path of the device without checking which object was removed when called.
This means that any removed interface while a connection is being established can cause the _wait_removed to complete and cancel the connection.

This commit simply checks that the callback is for the proper device object path.

The _wait_removed method registers the "InterfacesRemoved" callback on
the adapter path of the device without checking which object was
removed when called.
This means that any removed interface while a connection is
being established can cause the _wait_removed to complete and cancel
the connection.

This commit simply checks that the callback is for the proper device
object path.

Fixes hbldh#1489
@arthur-proglove arthur-proglove force-pushed the proglove/fix/bluez_wait_removed branch from 6a0fe08 to 33ee805 Compare April 25, 2024 07:59
@arthur-proglove arthur-proglove merged commit 4b67703 into workaroundgmbh:proglove-v0.21.1 Apr 25, 2024
1 check failed
@arthur-proglove arthur-proglove deleted the proglove/fix/bluez_wait_removed branch April 25, 2024 08:00
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.

4 participants