Skip to content

Commit

Permalink
Ensure success is reported for snapshot service call
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Miller <cammlle@amazon.com>
  • Loading branch information
Cameron Miller committed Sep 8, 2021
1 parent 16e12a9 commit e25c03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rosbag2_transport/src/rosbag2_transport/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ void Recorder::record()
[this](
const std::shared_ptr<rmw_request_id_t>/* request_header */,
const std::shared_ptr<rosbag2_interfaces::srv::Snapshot::Request>/* request */,
const std::shared_ptr<rosbag2_interfaces::srv::Snapshot::Response>/* response */)
const std::shared_ptr<rosbag2_interfaces::srv::Snapshot::Response> response)
{
writer_->take_snapshot();
response->success = writer_->take_snapshot();
});
}

Expand Down

0 comments on commit e25c03a

Please sign in to comment.