-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
There were actually 2 problems here: 1. We were missing the lock in check_for_subscription() completely (this is the original issue that caused me to examine this code). 2. We had an accessor for clients_endpoints_ so that external users could get a reference. But with that being the case, any access to the returned reference would be without a lock. Since we were only accessing client_endpoints_ in two places, make some methods in ServicePubListener to do the requested operations while holding the lock, getting rid of the problem. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
- Loading branch information
1 parent
95c2f6a
commit 8098a62
Showing
1 changed file
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters