Fixed bug am46058, unpausing stopped plugins
This commit is contained in:
parent
405d9ff48e
commit
d84c3a3798
|
@ -417,16 +417,18 @@ 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