1
0

WebAdmin: Renamed two neighboring locks for better clarity / style.

This commit is contained in:
Mattes D 2017-01-18 22:44:44 +01:00
parent 7f14faf831
commit dfb5722fb1

View File

@ -340,8 +340,8 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT
// Try to get the template from the Lua template script // Try to get the template from the Lua template script
if (ShouldWrapInTemplate) if (ShouldWrapInTemplate)
{ {
cCSLock Lock(m_CS); cCSLock LockSelf(m_CS);
cLuaState::cLock lock(m_TemplateScript); cLuaState::cLock LockTemplate(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;