[IOT-1420] Solve that if, rt properties ommited
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / serverBuilder / src / InterfaceHandler.cpp
old mode 100644 (file)
new mode 100755 (executable)
index ea50568..bf59e69
@@ -90,6 +90,9 @@ namespace
     {
         RCSRepresentation rcsRep;
 
+        RCSResourceObject::LockGuard lock{ resource, RCSResourceObject::AutoNotifyPolicy::NEVER };
+        rcsRep.setAttributes(resource.getAttributes());
+
         for (const auto& bound : resource.getBoundResources())
         {
             rcsRep.addChild(toRepresentation(*bound));