diff --git a/ecal/core/src/readwrite/ecal_reader.cpp b/ecal/core/src/readwrite/ecal_reader.cpp index c51a3b7e21..4e93766a8d 100644 --- a/ecal/core/src/readwrite/ecal_reader.cpp +++ b/ecal/core/src/readwrite/ecal_reader.cpp @@ -71,6 +71,8 @@ namespace eCAL m_receive_time(0), m_clock(0), m_frequency_calculator(0.0f), + m_share_ttype(Config::IsTopicTypeSharingEnabled()), + m_share_tdesc(Config::IsTopicDescriptionSharingEnabled()), m_created(false) { #ifndef NDEBUG @@ -87,12 +89,6 @@ namespace eCAL const std::chrono::milliseconds registration_timeout(Config::GetRegistrationTimeoutMs()); m_pub_map.set_expiration(registration_timeout); - // allow to share topic type - m_share_ttype = Config::IsTopicTypeSharingEnabled(); - - // allow to share topic description - m_share_tdesc = Config::IsTopicDescriptionSharingEnabled(); - // start transport layers SubscribeToLayers(); diff --git a/ecal/core/src/service/ecal_service_client_impl.cpp b/ecal/core/src/service/ecal_service_client_impl.cpp index a66c4b27c9..8451387752 100644 --- a/ecal/core/src/service/ecal_service_client_impl.cpp +++ b/ecal/core/src/service/ecal_service_client_impl.cpp @@ -66,13 +66,13 @@ namespace eCAL Stop(); } - bool CServiceClientImpl::Start(const std::string& service_name_, const ServiceMethodInformationMapT& methods_information_map_) + bool CServiceClientImpl::Start(const std::string& service_name_, const ServiceMethodInformationMapT& method_information_map_) { if (m_created) return(false); // set service name and methods - m_service_name = service_name_; - m_method_information_map = methods_information_map_; + m_service_name = service_name_; + m_method_information_map = method_information_map_; // initialize call count map for (const auto& method_information_pair : m_method_information_map)