Skip to content

Commit

Permalink
fixup! refactor: wrap the zenoh session with a shared pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Dec 6, 2024
1 parent c52077f commit e6c1a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class rmw_context_impl_s::Data final
}

// Check that the Zenoh session is still valid.
if (z_session_is_closed(z_loan(session_))) {
if (z_session_is_closed(session_->loan())) {
RMW_ZENOH_LOG_ERROR_NAMED(
"rmw_zenoh_cpp",
"Unable to create NodeData as Zenoh session is invalid.");
Expand Down
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/zenoh_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace rmw_zenoh_cpp
{
/// Close the zenoh session if destructed.
/// Loan the zenoh session.
///=============================================================================
const z_loaned_session_t * ZenohSession::loan()
{
Expand Down

0 comments on commit e6c1a43

Please sign in to comment.