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

Do not increase parameter callback count when an existing callback is overwritten #88

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

arneboe
Copy link
Contributor

@arneboe arneboe commented Aug 19, 2023

I stumbled upon this while reading the code :-)
As far as I understand rdm_register_parameter allows for overwriting existing callbacks.
In that case i would point to the existing callback and the number of callbacks should not increase.
However the number of callbacks was always increased. This is fixed by this PR

@arneboe arneboe changed the base branch from release/v3.0 to release/v3.1 August 19, 2023 13:15
Before the callback count would also be increased when overwriting an existing callback.
@someweisguy
Copy link
Owner

Excellent find. Thank you for submitting this PR!

@someweisguy someweisguy merged commit a949461 into someweisguy:release/v3.1 Aug 19, 2023
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