Skip to content

Fix un-advertisement and multiple-advertisement of Service callbacks#701

Merged
EzraBrooks merged 3 commits intodevelopfrom
fix-unadvertisement
Mar 20, 2024
Merged

Fix un-advertisement and multiple-advertisement of Service callbacks#701
EzraBrooks merged 3 commits intodevelopfrom
fix-unadvertisement

Conversation

@EzraBrooks
Copy link
Copy Markdown
Contributor

Public API Changes

Calling Service.advertise multiple times now throws an error, as suggested in #698.
Bugfix: prevent resource leak of Service callbacks

Description

As noted in #698, Service un-advertisement apparently has never removed the callback from the service server, which is probably not good.. for both resource leak reasons and possible unexpected behavior reasons like a callback being invoked even after unadvertisement.

Copy link
Copy Markdown
Contributor

@MatthijsBurgh MatthijsBurgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one comment, for the rest I approve.

@EzraBrooks EzraBrooks merged commit 6fabccc into develop Mar 20, 2024
@EzraBrooks EzraBrooks deleted the fix-unadvertisement branch March 20, 2024 14:25
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.

2 participants