Fix scheduled plugin unloading

When unloading a plugin no plugin is allowed to execute code. There's
been some flawed logic in the scheduling, leading it to bail out if the
plugin was marked for scheduled unloading..

Also change the "error" message of `sm plugins unload` to something
nice.
This commit is contained in:
Peace-Maker
2016-02-29 16:40:24 +01:00
parent e243de0538
commit df59fd5b0e
2 changed files with 3 additions and 8 deletions
-1
View File
@@ -462,7 +462,6 @@ private:
bool RequireExtensions(CPlugin *pPlugin);
bool FindOrRequirePluginDeps(CPlugin *pPlugin);
bool ScheduleUnload(CPlugin *plugin);
void UnloadPluginImpl(CPlugin *plugin);
void Purge(CPlugin *plugin);