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

[kinetic] Set source_update_cb attr before creating subscribers #41

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Mar 10, 2020

Fixes #36. It's possible for a subscriber to receive their first message and call the callback prior to self.source_update_cb existing. This PR creates the attribute before the subscribers.

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Copy link
Collaborator

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Oops, yeah, good call. Looks good to me.

@clalancette
Copy link
Collaborator

I think we'll also need the same fix on the noetic-devel branch.

@sloretz sloretz merged commit b9d8a76 into kinetic-devel Mar 11, 2020
@sloretz sloretz deleted the kinetic/source_update_cb_b4_subs branch March 11, 2020 22:45
sloretz added a commit that referenced this pull request Mar 11, 2020
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
sloretz added a commit that referenced this pull request Mar 12, 2020
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants