mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
Only call module onload if its present
This commit is contained in:
parent
d22405cea7
commit
ef4289689f
@ -84,7 +84,8 @@ kore_module_reload(void)
|
|||||||
if (module->mtime == st.st_mtime)
|
if (module->mtime == st.st_mtime)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
module->ocb(KORE_MODULE_UNLOAD);
|
if (module->ocb != NULL)
|
||||||
|
module->ocb(KORE_MODULE_UNLOAD);
|
||||||
|
|
||||||
module->mtime = st.st_mtime;
|
module->mtime = st.st_mtime;
|
||||||
if (dlclose(module->handle))
|
if (dlclose(module->handle))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user