Fix OnPluginsUnloaded not being called for reloadable modules. (#485)
Modules are loaded before plugins, and can hook OnPluginsLoaded. Therefore, they should be unloaded AFTER plugins, and be able to hook OnPluginsUnloaded. This was not the case for reloadable modules. This affects nvault module, whose OnPluginsUnloaded function wasn't being called.
This commit is contained in:
parent
7b3646a012
commit
65df386d66
@ -751,8 +751,6 @@ void C_ServerDeactivate_Post()
|
||||
|
||||
modules_callPluginsUnloading();
|
||||
|
||||
detachReloadModules();
|
||||
|
||||
CoreCfg.Clear();
|
||||
|
||||
g_auth.clear();
|
||||
@ -776,6 +774,8 @@ void C_ServerDeactivate_Post()
|
||||
ClearPluginLibraries();
|
||||
modules_callPluginsUnloaded();
|
||||
|
||||
detachReloadModules();
|
||||
|
||||
ClearMessages();
|
||||
|
||||
// Flush the dynamic admins list
|
||||
|
Loading…
Reference in New Issue
Block a user