Fixed a warning on closing invalid plugins.
parent
40cb30b6a5
commit
61b968601a
|
@ -36,7 +36,10 @@ cPluginLua::cPluginLua(const AString & a_PluginDirectory) :
|
|||
cPluginLua::~cPluginLua()
|
||||
{
|
||||
cCSLock Lock(m_CriticalSection);
|
||||
if (m_LuaState.IsValid())
|
||||
{
|
||||
m_LuaState.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue