From: Suyeon Hwang Date: Mon, 20 Dec 2021 08:46:56 +0000 (+0900) Subject: Set client type when config already initialized X-Git-Tag: submit/tizen_6.5/20211223.020506^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4624e83cde27a3e348768b84f49dc9b07e74227;p=platform%2Fcore%2Fuifw%2Ftts.git Set client type when config already initialized Change-Id: I72a698aeb074890d03e642b2ccb11e65c839dd4a Signed-off-by: Suyeon Hwang --- diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index 9749cca8..82e4de36 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -1171,6 +1171,9 @@ int tts_config_mgr_initialize(int uid, tts_config_client_type_e client_type) g_config_client_list = g_slist_append(g_config_client_list, temp_client); SECURE_SLOG(LOG_WARN, TAG_TTSCONFIG, "[CONFIG] Add uid(%d) but config has already initialized", uid); + SLOG(LOG_INFO, TAG_TTSCONFIG, "Client type : %d", client_type); + g_client_type |= client_type; + return 0; } else { temp_client = (tts_config_client_s*)calloc(1, sizeof(tts_config_client_s)); @@ -1362,6 +1365,7 @@ int tts_config_mgr_initialize(int uid, tts_config_client_type_e client_type) int tts_config_mgr_finalize(int uid, tts_config_client_type_e client_type) { if (0 < __tts_config_release_client(uid)) { + g_client_type &= ~client_type; return 0; }