Remove duplicated statements in sceneclient application
authorJihun Ha <jihun.ha@samsung.com>
Sun, 6 Mar 2016 03:22:31 +0000 (12:22 +0900)
committerUze Choi <uzchoi@samsung.com>
Sun, 6 Mar 2016 05:42:15 +0000 (05:42 +0000)
Change-Id: Ia67bdc441a162be1578f334b3e4932f79b09ef93
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5453
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/scene-manager/sampleapp/linux/sceneclient.cpp

index 6fe2683f92eebbeba5ab3294fef5da5c5b8b360d..48837f10502132bbe4bc71eca574f3d6ca2e749a 100755 (executable)
@@ -531,7 +531,7 @@ void onResourceDiscovered(std::shared_ptr<RCSRemoteResourceObject> foundResource
 
 void discoverResource()
 {
-    std::cout << "Wait 2 seconds until discovered." << std::endl;
+    std::cout << "Wait 4 seconds until discovered." << std::endl;
 
     try
     {
@@ -556,15 +556,7 @@ int main()
     try
     {
         discoverResource();
-    }
-    catch(std::exception &e)
-    {
-        std::cout << e.what() << std::endl;
-        return 0;
-    }
 
-    try
-    {
         g_currentRun = runCreateRemoteSceneList;
         g_currentRun();
     }