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:
IgnacioFDM authored and Vincent Herbet committed 2018-03-09 19:32:30 +01:00
1 parent 7b3646a012
commit 65df386d66
1 file changed
+2 -2
+2 -2
View File
@@ -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