From: Suyeon Hwang Date: Mon, 31 Jul 2017 08:02:49 +0000 (+0900) Subject: Fix condition of canceling synthesis X-Git-Tag: accepted/tizen/unified/20170810.171958~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Ftts.git;a=commitdiff_plain;h=5a6fc3433f4ef61bb09bead7cd87d1a48870752b Fix condition of canceling synthesis Change-Id: I264fdda830895f202da38fc7cfdc5da3ca5d06f7 Signed-off-by: Suyeon Hwang --- diff --git a/server/ttsd_server.c b/server/ttsd_server.c index eaf8a6e..724dc85 100644 --- a/server/ttsd_server.c +++ b/server/ttsd_server.c @@ -902,7 +902,7 @@ int ttsd_server_stop(int uid) SLOG(LOG_INFO, tts_tag(), "[Server] server stop, state(%d)", state); if (APP_STATE_PLAYING == state || APP_STATE_PAUSED == state) { - if (TTSD_SYNTHESIS_CONTROL_DOING == __server_get_synth_control()) { + if (TTSD_SYNTHESIS_CONTROL_DOING == __server_get_synth_control() && uid == ttsd_data_get_current_playing()) { SLOG(LOG_DEBUG, tts_tag(), "[Server] TTS-engine is running"); int ret = 0;