Skip to content

Commit

Permalink
get valid subscription handle even if cft not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <[email protected]>
  • Loading branch information
Chen Lihui committed Sep 5, 2023
1 parent c49991e commit abfed56
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rmw_fastrtps_cpp/src/subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,13 @@ __create_subscription(
subscription_options->content_filter_options;
if (nullptr != options->filter_expression) {
eprosima::fastdds::dds::ContentFilteredTopic * filtered_topic = nullptr;
if (!rmw_fastrtps_shared_cpp::create_content_filtered_topic(
if (rmw_fastrtps_shared_cpp::create_content_filtered_topic(
dds_participant, des_topic,
topic_name_mangled, options, &filtered_topic))
{
RMW_SET_ERROR_MSG("create_contentfilteredtopic() failed to create contentfilteredtopic");
return nullptr;
info->filtered_topic_ = filtered_topic;
des_topic = filtered_topic;
}
info->filtered_topic_ = filtered_topic;
des_topic = filtered_topic;
}
}

Expand Down

0 comments on commit abfed56

Please sign in to comment.