Skip to content

Commit

Permalink
Use the copy method to ensure all the attributes are being copied cor…
Browse files Browse the repository at this point in the history
…rectly

Signed-off-by: tempate <danieldiaz@eprosima.com>
  • Loading branch information
Tempate committed Jan 26, 2024
1 parent 5794756 commit d25b750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpp/rtps/builtin/discovery/participant/PDPListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void PDPListener::process_alive_data(
if (old_data != nullptr)
{
ParticipantProxyData old_data_copy(*old_data);
old_data_copy.copy(*old_data);

reader->getMutex().unlock();
lock.unlock();
Expand Down Expand Up @@ -225,6 +226,7 @@ void PDPListener::process_alive_data(
old_data->isAlive = true;

ParticipantProxyData old_data_copy(*old_data);
old_data_copy.copy(*old_data);

reader->getMutex().unlock();

Expand Down

0 comments on commit d25b750

Please sign in to comment.