[UTC][IoTCon][Non-ACR][Apply delayed response for every TC]
authoryoungman <yman.jung@samsung.com>
Thu, 29 Sep 2016 05:49:22 +0000 (14:49 +0900)
committeryoungman <yman.jung@samsung.com>
Thu, 29 Sep 2016 05:49:22 +0000 (14:49 +0900)
Change-Id: I500a3b886f8b68998305e6f5429b657465bb818b
Signed-off-by: youngman <yman.jung@samsung.com>
src/utc/iotcon/utc-iotcon-common.c
src/utc/iotcon/utc-iotcon-struct.c

index fe7358f..7a6f1f6 100755 (executable)
@@ -86,6 +86,9 @@ int icutc_send_ok_response(iotcon_request_h request)
                return 1;
        }
 
+       /* for preventing crash */
+       sleep(1);
+
        ret = iotcon_response_send(response);
        if (IOTCON_ERROR_NONE != ret) {
                ICUTC_ERR("iotcon_response_send() Fail(%d)", ret);
index 4bd7bb8..b64696c 100755 (executable)
@@ -718,9 +718,6 @@ static void _struct_request_handler(iotcon_resource_h resource, iotcon_request_h
                break;
        }
 
-       /* for preventing crash */
-       sleep(1);
-
        ret = icutc_send_ok_response(request);
        if (0 != ret) {
                ICUTC_ERR("icutc_send_ok_response() Fail(%d)", ret);