Add sending error when engine connection is failed 09/198209/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Thu, 10 Jan 2019 07:04:01 +0000 (16:04 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Tue, 22 Jan 2019 09:36:40 +0000 (09:36 +0000)
Change-Id: Icfdd36c765b6a15fdb50fc0fac5983fef7df039d
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 3d20bf8a6e667a867ae9230470ac20aa8265e6f4)

client/vc_mgr.c

index 60b2144..feb034d 100644 (file)
@@ -73,6 +73,9 @@ static Eina_Bool __vc_mgr_notify_state_changed(void *data);
 static void __vc_mgr_notify_error(void *data);
 static Eina_Bool __vc_mgr_notify_result(void *data);
 
+int __vc_mgr_cb_error(int reason, int daemon_pid, char* msg);
+
+
 static const char* __vc_mgr_get_error_code(vc_error_e err)
 {
        switch (err) {
@@ -472,7 +475,8 @@ static void __start_prepare_thread(void *data, Ecore_Thread *thread)
        while (0 != ret) {
 
                if (retry_count == 10) {
-                       SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Fail to request hello !!");
+                       SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Fail to request hello !! send error to manager");
+                       __vc_mgr_cb_error(VC_ERROR_TIMED_OUT, -1, "voice_framework.error.vcfw.connect_engine_fail");
                        return;
                }