summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaJiWon <jw_wonny.cha@samsung.com>2017-03-02 21:06:00 +0900
committerJooSeok Park <jooseok.park@samsung.com>2017-03-14 02:44:54 -0700
commitb0eb04f1699539c45bbb75e186c6910a239ede3d (patch)
tree1302a409e84a33e32ef187cd6ccd4531c4780b40
parent8bac293df35449d0ea53928cb796e54c079acfed (diff)
downloadiotivity-accepted/tizen_wearable.tar.gz
iotivity-accepted/tizen_wearable.tar.bz2
iotivity-accepted/tizen_wearable.zip
When called OCStartPresence() second, OCStartPresence() returns error. Fixed presenceState variable to OC_PRESENCE_UNINITIALIZED. Change-Id: I089c826f4105eb3aaf835a8feda4c10b848ebd5d Signed-off-by: ChaJiWon <jw_wonny.cha@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/17623 Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: jihwan seo <jihwan.seo@samsung.com> Reviewed-by: Way Vadhanasin <wayvad@microsoft.com> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> (cherry picked from commit 2f11e9592a7374ce28082a523b0c367a6d31baee) Reviewed-on: https://gerrit.iotivity.org/gerrit/17775
-rw-r--r--resource/csdk/stack/src/ocstack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c
index 66ac3bfaa..277cd6e9d 100644
--- a/resource/csdk/stack/src/ocstack.c
+++ b/resource/csdk/stack/src/ocstack.c
@@ -2278,6 +2278,7 @@ OCStackResult OCStop()
// Ensure that the TTL associated with ANY and ALL presence notifications originating from
// here send with the code "OC_STACK_PRESENCE_STOPPED" result.
presenceResource.presenceTTL = 0;
+ presenceState = OC_PRESENCE_UNINITIALIZED;
#endif // WITH_PRESENCE
#ifdef ROUTING_GATEWAY