From 5a6fc3433f4ef61bb09bead7cd87d1a48870752b Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Mon, 31 Jul 2017 17:02:49 +0900 Subject: [PATCH] Fix condition of canceling synthesis Change-Id: I264fdda830895f202da38fc7cfdc5da3ca5d06f7 Signed-off-by: Suyeon Hwang --- server/ttsd_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4