mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug am46058, unpausing stopped plugins
This commit is contained in:
parent
405d9ff48e
commit
d84c3a3798
@ -417,15 +417,17 @@ void CPluginMngr::CPlugin::pausePlugin()
|
||||
// Unpause a plugin
|
||||
void CPluginMngr::CPlugin::unpausePlugin()
|
||||
{
|
||||
if (isValid())
|
||||
if (isValid() && (getStatusCode() != ps_stopped))
|
||||
{
|
||||
// set status first so the function will be marked executable
|
||||
setStatus(ps_running);
|
||||
|
||||
// call plugin_unpause if provided
|
||||
if (m_UnpauseFwd != -1)
|
||||
{
|
||||
executeForwards(m_UnpauseFwd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char *CPluginMngr::ReadIntoOrFromCache(const char *file, size_t &bufsize)
|
||||
|
Loading…
Reference in New Issue
Block a user