Skip to content

Commit

Permalink
Refs #22506. Create sender resources for matched readers.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Jan 28, 2025
1 parent 89360f7 commit 51ae465
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ bool PDPStatelessWriter::matched_reader_add_edp(
bool ret = StatelessWriter::matched_reader_add_edp(data);
if (ret)
{
for (const Locator& loc : data.remote_locators().unicast)
{
mp_RTPSParticipant->createSenderResources(loc);
}
for (const Locator& loc : data.remote_locators().multicast)
{
mp_RTPSParticipant->createSenderResources(loc);
}
// Mark new reader as interested
add_interested_reader(data.guid());
// Send announcement to new reader
Expand Down

0 comments on commit 51ae465

Please sign in to comment.