From d47de860aae717764c90fafba804b85bd63bfd72 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Thu, 17 Oct 2019 19:31:37 -0500 Subject: [PATCH] Use right event info for RMW_EVENT_LIVELINESS_LOST Signed-off-by: Dan Rose --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index 36fbc14..f24ff18 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -1552,10 +1552,10 @@ extern "C" rmw_ret_t rmw_take_event( } case RMW_EVENT_LIVELINESS_LOST: { - auto ei = static_cast(event_info); + auto ei = static_cast(event_info); auto pub = static_cast(event_handle->data); - dds_requested_deadline_missed_status_t st; - if (dds_get_requested_deadline_missed_status(pub->pubh, &st) < 0) { + dds_liveliness_lost_status_t st; + if (dds_get_liveliness_lost_status(pub->pubh, &st) < 0) { *taken = false; return RMW_RET_ERROR; } else {