[IOT-1468] fix unicast presence issue which get error response.
authorjihwan.seo <jihwan.seo@samsung.com>
Wed, 26 Oct 2016 01:55:20 +0000 (10:55 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 26 Oct 2016 12:49:24 +0000 (12:49 +0000)
unicast presence subcribe should not send oic/ad message to presence server.

Change-Id: I3b1798b705b58646873de02e6d8a882fe84e1b64
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13673
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/ocstack.c

index 47e74f0..5e792d6 100644 (file)
@@ -2848,15 +2848,8 @@ OCStackResult OCDoResource(OCDoHandle *handle,
 #ifdef WITH_PRESENCE
     if (method == OC_REST_PRESENCE)
     {
-        if (requestInfo.isMulticast)
-        {
-            OIC_LOG(ERROR, TAG, "AddClientCB for presence done.");
-            goto exit;
-        }
-        else
-        {
-            OIC_LOG(ERROR, TAG, "this subscribe presence is unicast.");
-        }
+        OIC_LOG(ERROR, TAG, "AddClientCB for presence done.");
+        goto exit;
     }
 #endif