Skip to content

Commit

Permalink
ignore whether message is loaned on publish
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <[email protected]>
  • Loading branch information
Karsten1987 committed Sep 29, 2019
1 parent 046c09b commit b08d941
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmw_fastrtps_cpp/src/rmw_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ rmw_publish(
rmw_publisher_allocation_t * allocation,
bool is_loaned)
{
if (is_loaned) {
RMW_SET_ERROR_MSG("fastrtps does not support loaned messages");
return RMW_RET_ERROR;
}
// FastRTPS doesn't allow to loan messages.
// We therefore don't do anything special when messages are loaned
(void) is_loaned;

return rmw_fastrtps_shared_cpp::__rmw_publish(
eprosima_fastrtps_identifier, publisher, ros_message, allocation);
}
Expand Down

0 comments on commit b08d941

Please sign in to comment.