Skip to content

Commit 5595cfe

Browse files
committed
Refs #21690. Update locators in attributes.
Signed-off-by: Miguel Company <[email protected]>
1 parent c797258 commit 5595cfe

File tree

1 file changed

+7
-1
lines changed
  • src/cpp/rtps/builtin/discovery/participant

1 file changed

+7
-1
lines changed

src/cpp/rtps/builtin/discovery/participant/PDP.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -1767,13 +1767,16 @@ void PDP::update_endpoint_locators_if_default_nts(
17671767
return;
17681768
}
17691769

1770-
// Update proxies of endpoints with no configured locators
1770+
// Update proxies of endpoints with default configured locators
17711771
EDP* edp = get_edp();
17721772
for (BaseWriter* writer : writers)
17731773
{
17741774
if ((old_default_multicast == writer->getAttributes().multicastLocatorList) &&
17751775
(old_default_unicast == writer->getAttributes().unicastLocatorList))
17761776
{
1777+
writer->getAttributes().multicastLocatorList = new_default_multicast;
1778+
writer->getAttributes().unicastLocatorList = new_default_unicast;
1779+
17771780
WriterProxyData* wdata = nullptr;
17781781
GUID_t participant_guid;
17791782
wdata = addWriterProxyData(writer->getGuid(), participant_guid,
@@ -1794,6 +1797,9 @@ void PDP::update_endpoint_locators_if_default_nts(
17941797
if ((old_default_multicast == reader->getAttributes().multicastLocatorList) &&
17951798
(old_default_unicast == reader->getAttributes().unicastLocatorList))
17961799
{
1800+
reader->getAttributes().multicastLocatorList = new_default_multicast;
1801+
reader->getAttributes().unicastLocatorList = new_default_unicast;
1802+
17971803
ReaderProxyData* rdata = nullptr;
17981804
GUID_t participant_guid;
17991805
rdata = addReaderProxyData(reader->getGuid(), participant_guid,

0 commit comments

Comments
 (0)