Call dispatch cb for disposable source when IO error occured. 96/269196/2
authorJoonbum Ko <joonbum.ko@samsung.com>
Tue, 11 Jan 2022 06:41:03 +0000 (15:41 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 14 Jan 2022 03:44:57 +0000 (12:44 +0900)
Change-Id: I8a84a32b5c246c65a9b7a3ab5e5bc0e69afe51ae
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_utils_gthread.c

index 0c3b203..3352a0d 100644 (file)
@@ -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) {