Better trapping for already loaded comp module.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
245cc2164a
commit
a47f3ba8fd
|
@ -41,13 +41,15 @@ e_comp_init(void)
|
||||||
modname = "wl_drm";
|
modname = "wl_drm";
|
||||||
|
|
||||||
if (!(mod = e_module_find(modname)))
|
if (!(mod = e_module_find(modname)))
|
||||||
mod = e_module_new(modname);
|
|
||||||
|
|
||||||
if (mod)
|
|
||||||
{
|
{
|
||||||
if ((e_module_enable(mod)))
|
if ((mod = e_module_new(modname)))
|
||||||
return 1;
|
{
|
||||||
|
if (e_module_enable(mod))
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue