Skip to content

Commit

Permalink
chore: address the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Dec 5, 2024
1 parent 8f4949c commit 84d1267
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,10 @@ rmw_publisher_assert_liveliness(const rmw_publisher_t * publisher)
auto pub_data = node_data->get_pub_data(publisher);
RMW_CHECK_ARGUMENT_FOR_NULL(pub_data, RMW_RET_INVALID_ARGUMENT);

if (pub_data->is_shutdown()) {
return RMW_RET_ERROR;
}

return RMW_RET_OK;
}

Expand Down

0 comments on commit 84d1267

Please sign in to comment.