IOT-1877 : start presence issue
[platform/upstream/iotivity.git] / resource / csdk / stack / src / ocstack.c
index 66ac3bf..277cd6e 100644 (file)
@@ -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