Skip to content

Commit

Permalink
Make sure to *not* undeclare the liveliness token for clients.
Browse files Browse the repository at this point in the history
That is, we were forgetting to cancel the undeclare of
the liveliness token in client initialization, so we
would create the token and immediately remove it.  Fix
that here, so it only gets removed at rmw_destroy_client
time.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Jun 27, 2024
1 parent e73df29 commit ace7076
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2235,6 +2235,7 @@ rmw_create_client(

rmw_client->data = client_data;

free_token.cancel();
free_rmw_client.cancel();
free_client_data.cancel();
destruct_request_type_support.cancel();
Expand Down

0 comments on commit ace7076

Please sign in to comment.