[UTC][IoTCon][Non-ACR][Fix failed TC]
authorsung.goo.kim <sung.goo.kim@samsung.com>
Tue, 31 May 2016 11:22:51 +0000 (20:22 +0900)
committersung.goo.kim <sung.goo.kim@samsung.com>
Tue, 31 May 2016 23:00:48 +0000 (08:00 +0900)
Change-Id: Ia0d4887111227023b5cf60d9ea215bb426cef5c8
Signed-off-by: sung.goo.kim <sung.goo.kim@samsung.com>
src/utc/iotcon/utc-iotcon-presence-response.c

index 04b519b..d454b5d 100755 (executable)
@@ -65,7 +65,9 @@ void utc_iotcon_presence_response_startup(void)
                ret = iotcon_initialize();
                if (IOTCON_ERROR_NONE != ret) {
                        ICUTC_ERR("iotcon_initialize() Fail(%d)", ret);
+                       return;
                }
+
        } else {        /* enabled iot.ocf.security feature */
                char *path;
                ret = storage_foreach_device_supported(icutc_storage_device_supported_cb, &path);
@@ -83,6 +85,13 @@ void utc_iotcon_presence_response_startup(void)
                }
                free(path);
        }
+
+       ret = iotcon_start_presence(ICUTC_PRESENCE_INTERVAL);
+       if (IOTCON_ERROR_NONE != ret) {
+               ICUTC_ERR("iotcon_start_presence() Fail(%d)", ret);
+               iotcon_deinitialize();
+               return;
+       }
 }
 
 /**