diff options
author | ChaJiWon <jw_wonny.cha@samsung.com> | 2017-03-02 21:06:00 +0900 |
---|---|---|
committer | JooSeok Park <jooseok.park@samsung.com> | 2017-03-14 02:44:54 -0700 |
commit | b0eb04f1699539c45bbb75e186c6910a239ede3d (patch) | |
tree | 1302a409e84a33e32ef187cd6ccd4531c4780b40 | |
parent | 8bac293df35449d0ea53928cb796e54c079acfed (diff) | |
download | iotivity-accepted/tizen_wearable.tar.gz iotivity-accepted/tizen_wearable.tar.bz2 iotivity-accepted/tizen_wearable.zip |
IOT-1877 : start presence issuesubmit/tizen/20170314.094744accepted/tizen/wearable/20170314.224157accepted/tizen/unified/20170315.014656accepted/tizen/tv/20170314.224144accepted/tizen/mobile/20170314.224141accepted/tizen/ivi/20170314.224217accepted/tizen/common/20170314.173157accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_common
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.c | 1 |
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 |