Fix Bug about request hostResource logic.
authorjyong2.kim <jyong2.kim@samsung.com>
Mon, 22 Jun 2015 12:52:45 +0000 (21:52 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 23 Jun 2015 04:14:20 +0000 (04:14 +0000)
Change-Id: Ic004a4c09767663616215509f8b505c510ebea84
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1383
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/basis/resourceBroker/src/ResourceBroker.cpp

index 316acb4d146bbbf96e81cf7352d8c5da4620c573..0a6c18efefaf504574091da0e2f599743cd40b23 100755 (executable)
@@ -82,10 +82,7 @@ OCStackResult ResourceBroker::hostResource(PrimitiveResourcePtr pResource, Broke
         presenceItem = ResourcePresencePtr(new ResourcePresence(pResource));
         s_presenceList->push_back(presenceItem);
     }
-    else
-    {
-        presenceItem->addBrokerRequesterCB(cb);
-    }
+    presenceItem->addBrokerRequesterCB(cb);
 
     return ret;
 }