Add thread_wait to wait g_reprepare_thread is terminated 33/268233/1
authorsooyeon <sooyeon.kim@samsung.com>
Fri, 17 Dec 2021 16:03:50 +0000 (01:03 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Fri, 17 Dec 2021 16:03:50 +0000 (01:03 +0900)
Change-Id: Icabe75f263144ba51c03487d2e918e4d6529547d
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts_core.c

index d529b86..97ecdd0 100644 (file)
@@ -685,6 +685,7 @@ int tts_core_deinitialize()
        if (NULL != g_reprepare_thread && EINA_FALSE == ecore_thread_check(g_reprepare_thread)) {
                SLOG(LOG_INFO, TAG_TTSC, "[INFO] Cancel reprepare thread");
                ecore_thread_cancel(g_reprepare_thread);
+               ecore_thread_wait(g_reprepare_thread, 0.5);             // wait g_reprepare_thread is terminated.
        }
 
        if (NULL != g_pkgmgr_thread) {