From: sooyeon.kim Date: Fri, 23 Dec 2016 02:33:14 +0000 (+0900) Subject: Add calling error_cb in sttd_server.c X-Git-Tag: accepted/tizen/common/20170117.174608~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F109810%2F1;p=platform%2Fcore%2Fuifw%2Fstt.git Add calling error_cb in sttd_server.c Change-Id: I08d818361a75b70d5afe03b77ef6e829dfe51711 Signed-off-by: sooyeon.kim (cherry picked from commit f3237cc62ba4490ff111b8402d1adcd71d427cc1) --- diff --git a/server/sttd_server.c b/server/sttd_server.c index 591dd6d..bbb6a52 100755 --- a/server/sttd_server.c +++ b/server/sttd_server.c @@ -353,6 +353,8 @@ int __server_speech_status_callback(stte_speech_status_e status, void *user_para int __server_error_callback(stte_error_e error, const char* msg) { SLOG(LOG_DEBUG, TAG_STTD, "[Server] Error Callback is called"); + ecore_main_loop_thread_safe_call_async(__cancel_by_error, NULL); + return STTD_ERROR_NONE; }