diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_file/ecore_file_monitor_inotify.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c index e4cd3a69ad..7c8d5c9e79 100644 --- a/src/lib/ecore_file/ecore_file_monitor_inotify.c +++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c | |||
@@ -262,17 +262,9 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask) | |||
262 | em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); | 262 | em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); |
263 | } | 263 | } |
264 | if (mask & IN_IGNORED) | 264 | if (mask & IN_IGNORED) |
265 | { | 265 | /* The watch is removed. If the file name still exists monitor the new one, |
266 | /* The watch is removed. If the file name still exists monitor the new one, | 266 | * else delete it */ |
267 | * else delete it */ | 267 | _ecore_file_monitor_inotify_monitor(em, em->path); |
268 | if (ecore_file_exists(em->path)) | ||
269 | { | ||
270 | if (_ecore_file_monitor_inotify_monitor(em, em->path)) | ||
271 | em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); | ||
272 | } | ||
273 | else | ||
274 | em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); | ||
275 | } | ||
276 | } | 268 | } |
277 | 269 | ||
278 | static int | 270 | static int |