From: Sung-Jin Park Date: Sun, 6 Jun 2021 03:24:42 +0000 (+0900) Subject: pepper-inotify: fix to refer to event source only when it's valid X-Git-Tag: submit/tizen/20210606.040058~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F266742%2F1;p=platform%2Fcore%2Fuifw%2Fpepper.git pepper-inotify: fix to refer to event source only when it's valid Change-Id: I80d41932d29f76a1909f0b4d449ce00267ef644f Signed-off-by: Sung-Jin Park --- diff --git a/src/lib/inotify/pepper-inotify.c b/src/lib/inotify/pepper-inotify.c index db2c4f1..4115472 100644 --- a/src/lib/inotify/pepper-inotify.c +++ b/src/lib/inotify/pepper-inotify.c @@ -87,8 +87,10 @@ _inotify_fd_read(int fd, uint32_t mask, void *data) PEPPER_ERROR("The event source will be disabled and the fd will be closed.\n"); if (watch_data->event_source) + { wl_event_source_fd_update(watch_data->event_source, (uint32_t)0); - wl_event_source_remove(watch_data->event_source); + wl_event_source_remove(watch_data->event_source); + } return 0; }