Commit ad8521cc authored by Jay Sharma's avatar Jay Sharma Committed by Madan Lanka

[Resource Encapsulation] Fixed Sample APP issue

Change-Id: I1a90ec626f29b195ae1f4dde2d46b72fbc991133
Signed-off-by: default avatarJay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2102Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent 8b7b6168
...@@ -105,8 +105,8 @@ RCSSetResponse requestHandlerForSet(const RCSRequest& request, ...@@ -105,8 +105,8 @@ RCSSetResponse requestHandlerForSet(const RCSRequest& request,
std::cout << "Recieved a Set request from Client" << std::endl; std::cout << "Recieved a Set request from Client" << std::endl;
std::cout << "\n\nSending response to Client : " << std::endl; std::cout << "\n\nSending response to Client : " << std::endl;
printAttribute(server->getAttributes()); RCSResourceObject::LockGuard lock(*server);
printAttribute(attrs);
return RCSSetResponse::defaultAction(); return RCSSetResponse::defaultAction();
} }
...@@ -226,7 +226,7 @@ void process() ...@@ -226,7 +226,7 @@ void process()
{ {
displayControlTemperatureMenu(); displayControlTemperatureMenu();
if(selectControlTemperatureMenu() == QUIT) break; if (selectControlTemperatureMenu() == QUIT) return;
} }
} }
...@@ -237,6 +237,7 @@ int main(void) ...@@ -237,6 +237,7 @@ int main(void)
try try
{ {
process(); process();
server = NULL;
} }
catch (const std::exception& e) catch (const std::exception& e)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment