Merge pull request #325 from VoiDeD/setfailstate-crash
Notify plugin listeners of SetFailState'd plugins on unload. (bug 6347)
This commit is contained in:
commit
f421278166
@ -1510,7 +1510,7 @@ bool CPluginManager::UnloadPlugin(IPlugin *plugin)
|
||||
List<IPluginsListener *>::iterator iter;
|
||||
IPluginsListener *pListener;
|
||||
|
||||
if (pPlugin->GetStatus() <= Plugin_Error)
|
||||
if (pPlugin->GetStatus() <= Plugin_Error || pPlugin->GetStatus() == Plugin_Failed)
|
||||
{
|
||||
/* Notify plugin */
|
||||
pPlugin->Call_OnPluginEnd();
|
||||
|
Loading…
Reference in New Issue
Block a user