Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BlueZDBus: Unexport app and advertisement on stop() #125

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

Mimoja
Copy link
Contributor

@Mimoja Mimoja commented Jan 26, 2024

Currently neither application nor advertisement are unregistered on server stop. This leads to an re-export in case of a later start() which dbus-fast will acknoledge with an exception:

ValueError: An interface with this name is already exported on this bus at path "/": "org.bluez"

Instead of only exporting once and keeping track internally we instead unexport the interfaces on server shutdown.

Replaces #122

Currently neither application nor advertisement are unregistered on
server stop. This leads to an re-export in case of a later start() which
dbus-fast will acknoledge with an exception:

```
ValueError: An interface with this name is already exported on this bus at path "/": "org.bluez"
```

Instead of only exporting once and keeping track internally we instead unexport the interfaces
on server shutdown.

Signed-off-by: Mimoja <git@mimoja.de>
@kevincar kevincar merged commit 7572b6a into kevincar:develop Jan 26, 2024
@Mimoja Mimoja deleted the develop branch January 26, 2024 03:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants