core/metamod_console.cpp
changeset 768 e6394d70ced0
parent 763 e5a02b89021c
child 780 35f2a207badf
     1.1 --- a/core/metamod_console.cpp	Sat Oct 15 22:16:50 2011 -0700
     1.2 +++ b/core/metamod_console.cpp	Mon Dec 12 15:53:56 2011 -0600
     1.3 @@ -428,6 +428,12 @@
     1.4  				bool already;
     1.5  				CPluginManager::CPlugin *pl;
     1.6  
     1.7 +				// If we've recently tried to unload plugins, they might still
     1.8 +				// be in the unload queue. Force them out now. This is not
     1.9 +				// lowered to CPluginManager because it's not strictly safe
    1.10 +				// there.
    1.11 +				g_SourceHook.ResolvePendingUnloads(true);
    1.12 +
    1.13  				PluginId id = g_PluginMngr.Load(full_path, Pl_Console, already, error, sizeof(error));
    1.14  				pl = g_PluginMngr.FindById(id);
    1.15  				if (!pl || id < Pl_MinId || (pl->m_Status < Pl_Paused))