Skip to content

Commit

Permalink
Remove publisher buffer weak ptr from intra process manager when it a…
Browse files Browse the repository at this point in the history
…ssociated publisher is removed.

Signed-off-by: Jeffery Hsu <jefferyyjhsu@gmail.com>
  • Loading branch information
jefferyyjhsu committed Sep 21, 2023
1 parent 8012481 commit 25e641a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rclcpp/src/rclcpp/intra_process_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ IntraProcessManager::remove_publisher(uint64_t intra_process_publisher_id)
std::unique_lock<std::shared_timed_mutex> lock(mutex_);

publishers_.erase(intra_process_publisher_id);
publisher_buffers_.erase(intra_process_publisher_id);
pub_to_subs_.erase(intra_process_publisher_id);
}

Expand Down

0 comments on commit 25e641a

Please sign in to comment.