Moved stuff around in _moo_plugin_load()

master
Yevgen Muntyan 2007-02-27 22:31:35 -06:00
parent 7a01c305f7
commit 2f5e562beb
1 changed files with 12 additions and 11 deletions

View File

@ -364,20 +364,21 @@ _moo_plugin_load (const char *dir,
module_info = parse_ini_file (dir, ini_file);
if (!module_info)
return;
if (module_info)
{
loader = moo_plugin_loader_lookup (module_info->loader);
if (!loader)
{
waiting_list = g_slist_append (waiting_list, module_info);
return;
}
else
{
moo_plugin_loader_load (loader, module_info);
module_info_free (module_info);
}
}
}
void