forked from enlightenment/enlightenment
fix eio moniotr complaint on non-existing dirs
This commit is contained in:
parent
7cce5642d6
commit
5c1c30cd6d
|
@ -158,6 +158,8 @@ e_module_init(void)
|
||||||
E_LIST_HANDLER_APPEND(handlers, EIO_MONITOR_ERROR, _module_monitor_error, NULL);
|
E_LIST_HANDLER_APPEND(handlers, EIO_MONITOR_ERROR, _module_monitor_error, NULL);
|
||||||
|
|
||||||
if (mod_src_path)
|
if (mod_src_path)
|
||||||
|
{
|
||||||
|
if (ecore_file_is_dir(mod_src_path))
|
||||||
{
|
{
|
||||||
mon = eio_monitor_stringshared_add(mod_src_path);
|
mon = eio_monitor_stringshared_add(mod_src_path);
|
||||||
ls = eio_file_direct_ls(mod_src_path, _module_filter_cb, _module_main_cb, _module_done_cb, _module_error_cb, NULL);
|
ls = eio_file_direct_ls(mod_src_path, _module_filter_cb, _module_main_cb, _module_done_cb, _module_error_cb, NULL);
|
||||||
|
@ -165,8 +167,11 @@ e_module_init(void)
|
||||||
_e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
|
_e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
module_paths = e_path_dir_list_get(path_modules);
|
module_paths = e_path_dir_list_get(path_modules);
|
||||||
EINA_LIST_FREE(module_paths, epd)
|
EINA_LIST_FREE(module_paths, epd)
|
||||||
|
{
|
||||||
|
if (ecore_file_is_dir(epd->dir))
|
||||||
{
|
{
|
||||||
void *data = NULL;
|
void *data = NULL;
|
||||||
|
|
||||||
|
@ -178,6 +183,7 @@ e_module_init(void)
|
||||||
eina_stringshare_del(epd->dir);
|
eina_stringshare_del(epd->dir);
|
||||||
free(epd);
|
free(epd);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue