From e25c03ac214251503f34d8225130371acab9f4b9 Mon Sep 17 00:00:00 2001 From: Cameron Miller Date: Wed, 8 Sep 2021 00:08:51 +0000 Subject: [PATCH] Ensure success is reported for snapshot service call Signed-off-by: Cameron Miller --- rosbag2_transport/src/rosbag2_transport/recorder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosbag2_transport/src/rosbag2_transport/recorder.cpp b/rosbag2_transport/src/rosbag2_transport/recorder.cpp index 8fb7e98ff7..2f80ec5762 100644 --- a/rosbag2_transport/src/rosbag2_transport/recorder.cpp +++ b/rosbag2_transport/src/rosbag2_transport/recorder.cpp @@ -102,9 +102,9 @@ void Recorder::record() [this]( const std::shared_ptr/* request_header */, const std::shared_ptr/* request */, - const std::shared_ptr/* response */) + const std::shared_ptr response) { - writer_->take_snapshot(); + response->success = writer_->take_snapshot(); }); }