Skip to content

Commit df78ac7

Browse files
authored
Fix publisher handle variable name (#202)
1 parent d8d7972 commit df78ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/src/node/publisher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ where
106106
// SAFETY: No preconditions for the functions called.
107107
// The unsafe variables created get converted to safe types before being returned
108108
unsafe {
109-
let raw_topic_pointer = rcl_publisher_get_topic_name(&*self.handle.lock());
109+
let raw_topic_pointer = rcl_publisher_get_topic_name(&*self.rcl_publisher_mtx.lock());
110110
CStr::from_ptr(raw_topic_pointer)
111111
.to_string_lossy()
112112
.into_owned()

0 commit comments

Comments
 (0)