From: Joonbum Ko Date: Tue, 11 Jan 2022 06:41:03 +0000 (+0900) Subject: Call dispatch cb for disposable source when IO error occured. X-Git-Tag: submit/tizen/20220118.102333~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cb8c3426bbe2a6c869756dd7ef1b527101334e2;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Call dispatch cb for disposable source when IO error occured. Change-Id: I8a84a32b5c246c65a9b7a3ab5e5bc0e69afe51ae Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_utils_gthread.c b/src/tpl_utils_gthread.c index 0c3b203..3352a0d 100644 --- a/src/tpl_utils_gthread.c +++ b/src/tpl_utils_gthread.c @@ -202,6 +202,11 @@ _thread_source_dispatch(GSource *source, GSourceFunc cb, gpointer data) * There may be problems with the screen, but it does not affect the operation. */ TPL_WARN("Invalid GIOCondition occured. tpl_gsource(%p) fd(%d) cond(%d)", gsource, gsource->fd, cond); + + if (gsource->type == SOURCE_TYPE_DISPOSABLE) { + if (gsource->gsource_funcs && gsource->gsource_funcs->dispatch) + ret = gsource->gsource_funcs->dispatch(gsource, 0); + } } if (gsource->type == SOURCE_TYPE_DISPOSABLE) {