From 2f28806493ebc0c8c72a84e21eb24b36118b3e11 Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Wed, 3 Nov 2021 09:33:44 +0100 Subject: [PATCH] Refs #12819: fully support dynamic addition od remote servers in deprecated API Signed-off-by: JLBuenoLopez-eProsima --- src/cpp/fastrtps_deprecated/Domain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpp/fastrtps_deprecated/Domain.cpp b/src/cpp/fastrtps_deprecated/Domain.cpp index 2e84d80e920..cc502f0f888 100644 --- a/src/cpp/fastrtps_deprecated/Domain.cpp +++ b/src/cpp/fastrtps_deprecated/Domain.cpp @@ -218,6 +218,7 @@ void Domain::getDefaultParticipantAttributes( { if (false == default_xml_profiles_loaded) { + SystemInfo::set_environment_file(); XMLProfileManager::loadDefaultXMLFile(); default_xml_profiles_loaded = true; } @@ -262,6 +263,7 @@ void Domain::getDefaultPublisherAttributes( { if (false == default_xml_profiles_loaded) { + SystemInfo::set_environment_file(); XMLProfileManager::loadDefaultXMLFile(); default_xml_profiles_loaded = true; } @@ -274,6 +276,7 @@ void Domain::getDefaultSubscriberAttributes( { if (false == default_xml_profiles_loaded) { + SystemInfo::set_environment_file(); XMLProfileManager::loadDefaultXMLFile(); default_xml_profiles_loaded = true; } @@ -409,6 +412,7 @@ bool Domain::loadXMLProfilesFile( { if (false == default_xml_profiles_loaded) { + SystemInfo::set_environment_file(); XMLProfileManager::loadDefaultXMLFile(); default_xml_profiles_loaded = true; }