Skip to content

Commit

Permalink
Recording stopped prints only once. (#1530)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya authored Jan 11, 2024
1 parent 195e406 commit 73b0772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosbag2_transport/src/rosbag2_transport/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ RecorderImpl::RecorderImpl(
RecorderImpl::~RecorderImpl()
{
keyboard_handler_->delete_key_press_callback(toggle_paused_key_callback_handle_);
stop();
if (in_recording_) {
stop();
}
}

void RecorderImpl::stop()
Expand Down

0 comments on commit 73b0772

Please sign in to comment.