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

Properly handle unsubcribe for TFClient #375

Merged
merged 1 commit into from
Sep 18, 2020
Merged

Conversation

J-Rojas
Copy link
Contributor

@J-Rojas J-Rojas commented Sep 17, 2020

No description provided.

@Rayman
Copy link
Contributor

Rayman commented Sep 18, 2020

Can you explain what was wrong with the old implementation and how this PR improves it?

@J-Rojas
Copy link
Contributor Author

J-Rojas commented Sep 18, 2020

The old method never properly unsubscribes the processTFArray callback. It must be provided as an argument to the Topic.unsubscribe method to properly be unregistered. This PR saves the callback in a private member and then provides this callback to the unsubscribe method.

@mvollrath mvollrath merged commit 6c17327 into develop Sep 18, 2020
k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
* Fix whitespace

* (actions) add GH actions; update travis

* Fix missing semi-colon

* Drop unused concat task and related

* Add tests

* Run tests in CI

* (travis) remove travis

* (lint) ignore in grunt config

* don't use outdated cdn in browser tests

* (actions) build needs to be in sync with library

* build; add package-lock.json

* Remove bower.json
@MatthijsBurgh MatthijsBurgh deleted the tfclient-unsubscribe-fix branch November 28, 2023 18:19
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.

3 participants