Webadmin: Added a missing CS lock.
This fixes an assert when accessing the login-page and the plugin-failure pages in the webadmin.
This commit is contained in:
parent
0256daa7ca
commit
20205d33ba
@ -341,6 +341,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT
|
|||||||
if (ShouldWrapInTemplate)
|
if (ShouldWrapInTemplate)
|
||||||
{
|
{
|
||||||
cCSLock Lock(m_CS);
|
cCSLock Lock(m_CS);
|
||||||
|
cLuaState::cLock lock(m_TemplateScript);
|
||||||
if (m_TemplateScript.Call("ShowPage", this, &TemplateRequest, cLuaState::Return, Template))
|
if (m_TemplateScript.Call("ShowPage", this, &TemplateRequest, cLuaState::Return, Template))
|
||||||
{
|
{
|
||||||
cHTTPOutgoingResponse Resp;
|
cHTTPOutgoingResponse Resp;
|
||||||
|
Loading…
Reference in New Issue
Block a user