Skip to content

Commit

Permalink
Continue shutting down all publishers if one fails
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Oct 2, 2024
1 parent cf8e8a2 commit 55d0312
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rmw_zenoh_cpp/src/detail/rmw_node_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ rmw_ret_t NodeData::shutdown()
for (auto pub_it = pubs_.begin(); pub_it != pubs_.end(); ++pub_it) {
ret = pub_it->second->shutdown();
if (ret != RMW_RET_OK) {
return ret;
RMW_ZENOH_LOG_ERROR_NAMED(
"rmw_zenoh_cpp",
"Unable to shutdown publisher %s within id %zu. rmw_ret_t code: %zu.",
pub_it->second->topic_info().name_.c_str(),
id_,
ret
);
}
}

Expand Down

0 comments on commit 55d0312

Please sign in to comment.