-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add methods to remove entities from Node #110
Conversation
@jacobperron there seems to be an error in
Edit: never mind, I just saw your message in #109 (comment) |
#111 disables the flake8 check for |
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.
One pretty minor thing; otherwise looks good to me.
rcljava/src/test/java/org/ros2/rcljava/subscription/SubscriptionTest.java
Show resolved
Hide resolved
When an entity is disposed, make sure to also remove it from the Node. This resolves an issue where invalid entities may be used by other classes or users. For example, a disposed Subscription being accessed by the executor. Fixes #105 Signed-off-by: Jacob Perron <[email protected]>
Signed-off-by: Jacob Perron <[email protected]>
Signed-off-by: Jacob Perron <[email protected]>
7972639
to
c8e5d85
Compare
I've rebased to fix CI 🤞 |
@esteve @clalancette PTAL |
@jacobperron thanks! |
* Add methods to remove entities from Node When an entity is disposed, make sure to also remove it from the Node. This resolves an issue where invalid entities may be used by other classes or users. For example, a disposed Subscription being accessed by the executor. Fixes #105 Signed-off-by: Jacob Perron <[email protected]> * Add tests for disposing publishers, services, and clients Signed-off-by: Jacob Perron <[email protected]> * Rename test Signed-off-by: Jacob Perron <[email protected]>
* Add methods to remove entities from Node When an entity is disposed, make sure to also remove it from the Node. This resolves an issue where invalid entities may be used by other classes or users. For example, a disposed Subscription being accessed by the executor. Fixes #105 Signed-off-by: Jacob Perron <[email protected]> * Add tests for disposing publishers, services, and clients Signed-off-by: Jacob Perron <[email protected]> * Rename test Signed-off-by: Jacob Perron <[email protected]>
When an entity is disposed, make sure to also remove it from the Node.
This resolves an issue where invalid entities may be used by other classes or users.
For example, a disposed Subscription being accessed by the executor.
Fixes #105