forked from enlightenment/efl
ecore_file: Don't check for file existance
This isn't needed, as inotify_add_watch will check this. SVN revision: 78168
This commit is contained in:
parent
2a3cb2d1c9
commit
2f60b3930d
|
@ -128,16 +128,8 @@ ecore_file_monitor_inotify_add(const char *path,
|
|||
|
||||
_monitors = ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em)));
|
||||
|
||||
if (ecore_file_exists(em->path))
|
||||
{
|
||||
if (!_ecore_file_monitor_inotify_monitor(em, em->path))
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
ecore_file_monitor_inotify_del(em);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return em;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue