Skip to content

Commit c94975d

Browse files
committed
Refs #22506. Create sender resources for matched readers.
Signed-off-by: Miguel Company <[email protected]>
1 parent 21cf4f9 commit c94975d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/cpp/rtps/writer/StatelessWriter.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,17 @@ bool StatelessWriter::matched_reader_add_edp(
563563
<< " as remote reader");
564564
}
565565

566+
// Create sender resources for the case when we send to a single reader
567+
locator_selector_.locator_selector.reset(false);
568+
locator_selector_.locator_selector.enable(data.guid());
569+
mp_RTPSParticipant->network_factory().select_locators(locator_selector_.locator_selector);
570+
RTPSParticipantImpl* part = mp_RTPSParticipant;
571+
locator_selector_.locator_selector.for_each([part](const Locator_t& loc)
572+
{
573+
part->createSenderResources(loc);
574+
});
575+
576+
// Create sender resources for the case when we send to all readers
566577
update_reader_info(true);
567578

568579
if (nullptr != listener_)

0 commit comments

Comments
 (0)