Merge pull request #325 from VoiDeD/setfailstate-crash

Notify plugin listeners of SetFailState'd plugins on unload. (bug 6347)
This commit is contained in:
Kyle Sanderson 2015-04-15 15:34:12 -07:00
commit f421278166

View File

@ -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();