Fix event of consumed ASR result to become success 37/123737/4
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 29 Mar 2017 01:52:19 +0000 (10:52 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 21 Apr 2017 08:33:53 +0000 (17:33 +0900)
Change-Id: I153ea61d8b7245c729459ac72f74f18032cd5008
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/vcd_server.c

index 26f4b7c..aff998d 100755 (executable)
@@ -31,6 +31,7 @@
 #include "vcd_dbus.h"
 
 #include "voice_control_command_expand.h"
+#include "voice_control_common.h"
 
 /*
 * VC Server static variable
@@ -510,12 +511,17 @@ static void __vcd_server_result_cb(vcp_result_event_e event, int* result_id, int
                                                vcdc_send_show_tooltip(pid, false);
                                                if (-1 != vcd_client_manager_get_pid()) {
                                                        /* Manager client is available */
+                                                       vc_info_parser_unset_result(false);
+                                                       vc_info_parser_set_result(all_result, VC_RESULT_EVENT_RESULT_SUCCESS, msg, NULL, false);
                                                        if (0 != vcdc_send_result_to_manager(vcd_client_manager_get_pid(), VC_RESULT_TYPE_NOTIFICATION)) {
                                                                SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Fail to send result");
                                                        }
                                                }
 
                                                vcd_client_manager_set_exclusive(false);
+
+                                               vcd_config_set_service_state(VCD_STATE_READY);
+                                               vcdc_send_service_state(VCD_STATE_READY);
                                                return;
                                        }
                                }