Skip to content

Commit

Permalink
QuickFix ros-visualization#1372: remove pending callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Aug 26, 2019
1 parent 6b36e1a commit 5ab445b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rviz/image/image_display_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ void ImageDisplayBase::subscribe()

void ImageDisplayBase::unsubscribe()
{
// Quick fix for #1372. Can be removed if https://github.com/ros/geometry2/pull/402 is released
if (tf_filter_)
update_nh_.getCallbackQueue()->removeByID((uint64_t)tf_filter_.get());

tf_filter_.reset();
sub_.reset();
}
Expand Down

0 comments on commit 5ab445b

Please sign in to comment.