Remove to check processing state in result callback from engine 49/132749/4
authorWonnam Jang <wn.jang@samsung.com>
Wed, 7 Jun 2017 10:32:30 +0000 (19:32 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Thu, 8 Jun 2017 10:29:31 +0000 (19:29 +0900)
Change-Id: I9f062c969facab7377859154113889b16328b849
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
server/vcd_server.c

index 23675a8..fdad45b 100644 (file)
@@ -465,13 +465,6 @@ static void* __recorder_stop(void *data)
 static void __vcd_server_result_cb(vcp_result_event_e event, int* result_id, int count, const char* all_result,
                                                                   const char* non_fixed_result, const char* nlu_result, const char* msg, void *user_data)
 {
-       if (VCD_STATE_PROCESSING != vcd_config_get_service_state()) {
-               if (VCD_RECOGNITION_MODE_RESTART_CONTINUOUSLY != vcd_client_get_recognition_mode()) {
-                       SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Current state is not 'Processing' and mode is not 'Restart continuously'");
-                       return;
-               }
-       }
-
        vc_info_parser_unset_result(vcd_client_manager_get_exclusive());
        vcd_client_manager_set_result_text(all_result);
 
@@ -1804,6 +1797,8 @@ int vcd_server_mgr_do_action(int pid, int type, const char* action)
        if (0 != ret) {
                SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to process do action : %d", ret);
        } else {
+               vcd_config_set_service_state(VCD_STATE_PROCESSING);
+               vcdc_send_service_state(VCD_STATE_PROCESSING);
                SLOG(LOG_DEBUG, TAG_VCD, "[Server SUCCESS] Process do action");
        }