From 5b21783100021f93e761fb6f65fd55dbf8c94a18 Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Fri, 26 Feb 2021 13:39:33 +0900 Subject: [PATCH] Fix state check code Current state check code just checks current state is ready or not. However, if state is not ready, client is still connected to server, because playing or processing state also means the connection is still on. This patch changes the state check code to exact way. Change-Id: Idb3be9f1b042c01dbd7c2e5f208866d70d8a25a0 Signed-off-by: Suyeon Hwang --- client/tts_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tts_core.c b/client/tts_core.c index 575e4b7..7dcac7f 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -834,8 +834,8 @@ int tts_core_receive_hello(int uid, int ret, int credential_needed) return TTS_ERROR_OPERATION_FAILED; } - if (TTS_STATE_READY == client->current_state) { - SLOG(LOG_INFO, TAG_TTSC, "[INFO] tts client is already READY"); + if (TTS_STATE_CREATED != client->current_state) { + SLOG(LOG_INFO, TAG_TTSC, "[INFO] tts client is already prepared"); return TTS_ERROR_NONE; } -- 2.7.4