be slightly stricter on when to load a module
This commit is contained in:
@@ -338,8 +338,7 @@ HiResult moduler_reload(VectorModuleData *modules, size_t modindx) {
|
||||
log_debug("Opening patch: %s\n", patch.filename);
|
||||
void *new_handle = dlopen(patch.filename, RTLD_LAZY);
|
||||
if (!new_handle) {
|
||||
log_error("Couldn't load: %s\n", dlerror());
|
||||
module->info = modinfo_clear(module->info, HI_MODULE_STATE_DIRTY);
|
||||
log_errorv("Couldn't load: %s\n", dlerror());
|
||||
return HI_FAIL;
|
||||
}
|
||||
patch.dlhandle = new_handle;
|
||||
|
||||
Reference in New Issue
Block a user