Skip to content

Commit

Permalink
Delete frame_locked_markers when reusing marker (#907) (#912)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
(cherry picked from commit dbc240d)

Co-authored-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
mergify[bot] and sloretz committed Sep 26, 2022
1 parent 2d6db42 commit fb46d5e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ MarkerBasePtr MarkerCommon::createOrGetOldMarker(
if (it != markers_.end()) {
marker = it->second;
markers_with_expiration_.erase(marker);
frame_locked_markers_.erase(marker);
if (message->type != marker->getMessage()->type) {
markers_.erase(it);
marker = createMarker(message);
Expand Down

0 comments on commit fb46d5e

Please sign in to comment.