Skip to content

Commit

Permalink
Refs #20629: Protect pdp_to_send
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed May 10, 2024
1 parent f1c52ac commit 105294a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2341,6 +2341,7 @@ bool DiscoveryDataBase::add_pdp_to_send_(
eprosima::fastrtps::rtps::CacheChange_t* change)
{
// Add DATA(p) to send in next iteration if it is not already there
std::lock_guard<std::recursive_mutex> guard(mutex_);
if (std::find(
pdp_to_send_.begin(),
pdp_to_send_.end(),
Expand Down

0 comments on commit 105294a

Please sign in to comment.