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:
Joerg Sonnenberger 2010-08-15 02:59:32 +00:00 committed by Carsten Haitzler
parent 2531cd8114
commit df0903779c
1 changed files with 2 additions and 2 deletions

View File

@ -91,6 +91,8 @@ ecore_file_monitor_poll_add(const char *path,
em->data = data;
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_is_dir(em->path))
@ -126,8 +128,6 @@ ecore_file_monitor_poll_add(const char *path,
return NULL;
}
_monitors = ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em)));
return em;
}