From: VBS Date: Thu, 10 Apr 2025 07:49:16 +0000 (+0900) Subject: Add a checker whether pkgmgr thread is canceled or not X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e8cd09c49828ef17e5d6ec2061f488c079893bc;p=platform%2Fcore%2Fuifw%2Ftts.git Add a checker whether pkgmgr thread is canceled or not - Issue: There is a case that a second handle requests to cancel the pkgmgr thread, although the thread is pending to be canceled. - Solution: Before requesting to cancel the thread, we check whether the pkgmgr thread is pending to be canceled or not. Change-Id: I9b94a6ad35fd11e34ee7488aeeceb0ad2eaed751 Signed-off-by: VBS --- diff --git a/client/tts_core.c b/client/tts_core.c index e105ddff..e3617615 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -797,7 +797,7 @@ int tts_core_deinitialize() g_unset_app_context_cb_idler = NULL; } - if (NULL != g_pkgmgr_thread) { + if (NULL != g_pkgmgr_thread && EINA_FALSE == ecore_thread_check(g_pkgmgr_thread)) { SLOG(LOG_INFO, TAG_TTSC, "[INFO] Cancel pkgmgr thread"); ecore_thread_cancel(g_pkgmgr_thread);