Set client type when config already initialized 17/268317/2 submit/tizen_6.5/20211223.020506
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 20 Dec 2021 08:46:56 +0000 (17:46 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 20 Dec 2021 09:00:41 +0000 (18:00 +0900)
Change-Id: I72a698aeb074890d03e642b2ccb11e65c839dd4a
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_mgr.c

index 9749cca805442fcfba3892c62e9fd328d5125f8d..82e4de36af6cb1f44975ab39e346410188410bf1 100644 (file)
@@ -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;
        }