tpl_wayland_egl_thread: Added an exception checking to prevent blocking issue. 53/192053/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Mon, 29 Oct 2018 10:39:33 +0000 (19:39 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Mon, 29 Oct 2018 10:39:33 +0000 (19:39 +0900)
Change-Id: I3fce4d6db3e4f4a4dd7446b3946edc523c31e148
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index cb02e46..ef1675c 100644 (file)
@@ -612,6 +612,8 @@ _twe_thread_wl_disp_check(GSource *source)
        gboolean ret = FALSE;
 
        if (g_source_is_destroyed(source)) {
+               if (disp_source && disp_source->disp && disp_source->prepared)
+                       wl_display_cancel_read(disp_source->disp);
                TPL_ERR("display source(%p) already destroyed.", source);
                return ret;
        }