diff --git a/src/cpp/fastdds/publisher/DataWriterImpl.cpp b/src/cpp/fastdds/publisher/DataWriterImpl.cpp index 972909df63b..6840c9b7745 100644 --- a/src/cpp/fastdds/publisher/DataWriterImpl.cpp +++ b/src/cpp/fastdds/publisher/DataWriterImpl.cpp @@ -2000,6 +2000,12 @@ bool DataWriterImpl::can_qos_be_updated( EPROSIMA_LOG_WARNING(RTPS_QOS_CHECK, "Only the period of Positive ACKs can be changed after the creation of a DataWriter."); } + if (!(to.properties() == from.properties())) + { + updatable = false; + EPROSIMA_LOG_WARNING(RTPS_QOS_CHECK, "PropertyPolicyQos cannot be changed after the DataWriter is enabled."); + } + return updatable; } diff --git a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp index 614def7c83f..e49beaa62ec 100644 --- a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp +++ b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp @@ -1643,7 +1643,12 @@ bool DataReaderImpl::can_qos_be_updated( { updatable = false; EPROSIMA_LOG_WARNING(RTPS_QOS_CHECK, - "data_sharing_listener_thread cannot be changed after the DataReader is enabled"); + "data_sharing_listener_thread cannot be changed after the DataReader is enabled."); + } + if (!(to.properties() == from.properties())) + { + updatable = false; + EPROSIMA_LOG_WARNING(RTPS_QOS_CHECK, "PropertyPolicyQos cannot be changed after the DataReader is enabled."); } return updatable; }