forked from enlightenment/efl
From: Joerg Sonnenberger <joerg@britannica.bec.de>
Subject: [E-devel] ecore's poll file manager Hi all, attached is a small bugfix for ecore. If the to-be-monitored path doesn't exist, the poll monitor currently tries to remove an item from a list which was never hooked up. SVN revision: 51123
This commit is contained in:
parent
2531cd8114
commit
df0903779c
|
@ -91,6 +91,8 @@ ecore_file_monitor_poll_add(const char *path,
|
||||||
em->data = data;
|
em->data = data;
|
||||||
|
|
||||||
ECORE_FILE_MONITOR_POLL(em)->mtime = ecore_file_mod_time(em->path);
|
ECORE_FILE_MONITOR_POLL(em)->mtime = ecore_file_mod_time(em->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_exists(em->path))
|
||||||
{
|
{
|
||||||
if (ecore_file_is_dir(em->path))
|
if (ecore_file_is_dir(em->path))
|
||||||
|
@ -126,8 +128,6 @@ ecore_file_monitor_poll_add(const char *path,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_monitors = ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em)));
|
|
||||||
|
|
||||||
return em;
|
return em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue