-
Notifications
You must be signed in to change notification settings - Fork 43
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 race condition in TopicInfo #432
Conversation
Signed-off-by: Carlos Agüero <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #432 +/- ##
==========================================
- Coverage 87.79% 87.76% -0.04%
==========================================
Files 59 59
Lines 5694 5696 +2
==========================================
Hits 4999 4999
- Misses 695 697 +2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to protect also this line ?
this->remoteSubscribers.TopicList(remoteSubs);
There's a mutex after |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes the issue for me!
🦟 Bug fix
See #430
Summary
This patch fixes a potential race condition when calling
TopicList
.See #430 to reproduce the issue/fix with the Gazebo
Image Display
plugin.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.