Skip to content

Commit

Permalink
Update PluginSys.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Wend4r authored and dvander committed May 24, 2021
1 parent 6214219 commit 8f73e5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/logic/PluginSys.cpp
Expand Up @@ -1499,15 +1499,15 @@ void CPluginManager::Purge(CPlugin *plugin)
if (plugin->GetStatus() == Plugin_Running)
plugin->Call_OnPluginEnd();

m_pOnNotifyPluginUnloaded->PushCell(plugin->GetMyHandle());
m_pOnNotifyPluginUnloaded->Execute(NULL);

// Notify listeners of unloading.
if (plugin->EnteredSecondPass()) {
for (ListenerIter iter(m_listeners); !iter.done(); iter.next())
(*iter)->OnPluginUnloaded(plugin);
}

m_pOnNotifyPluginUnloaded->PushCell(plugin->GetMyHandle());
m_pOnNotifyPluginUnloaded->Execute(NULL);

plugin->DropEverything();

for (ListenerIter iter(m_listeners); !iter.done(); iter.next())
Expand Down

0 comments on commit 8f73e5e

Please sign in to comment.