From a74978f6f87252f129bd341ed21e5d8fc9e8ac3d Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Thu, 27 Jun 2024 14:22:56 -0400 Subject: [PATCH] Make sure to *not* undeclare the liveliness token for clients. (#219) 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 --- rmw_zenoh_cpp/src/rmw_zenoh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rmw_zenoh_cpp/src/rmw_zenoh.cpp b/rmw_zenoh_cpp/src/rmw_zenoh.cpp index 4d2fffcf..af11d859 100644 --- a/rmw_zenoh_cpp/src/rmw_zenoh.cpp +++ b/rmw_zenoh_cpp/src/rmw_zenoh.cpp @@ -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();