Fixed bug am46058, unpausing stopped plugins

This commit is contained in:
David Anderson 2006-10-21 21:48:24 +00:00
parent 405d9ff48e
commit d84c3a3798

View File

@ -417,14 +417,16 @@ 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);
}
}
}