Use appropriate pid when handling streaming failure event 65/243165/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 3 Sep 2020 12:00:38 +0000 (21:00 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Thu, 3 Sep 2020 12:00:42 +0000 (21:00 +0900)
Change-Id: I6b2eda900ec9d17c6e37b36f046a8c9bcc0975a4

src/service_plugin.cpp

index 7f26d00..97ad519 100644 (file)
@@ -342,7 +342,8 @@ void handle_speech_streaming_event_failure(void* data)
        if (plugin) service_main = plugin->get_service_main();
 
        if (service_main) {
-               service_main->client_send_recognition_result(0, MA_RECOGNITION_RESULT_EVENT_ERROR);
+               pid_t pid = service_main->get_current_client_pid();
+               service_main->client_send_recognition_result(pid, MA_RECOGNITION_RESULT_EVENT_ERROR);
        }
 
        delete param;