1
0

Merge pull request #3551 from cuberite/RenameTwoLocks

WebAdmin: Renamed two neighboring locks for better clarity / style.
This commit is contained in:
Julian Laubstein 2017-01-19 00:40:18 +01:00 committed by GitHub
commit b356a035d1

View File

@ -340,8 +340,8 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT
// Try to get the template from the Lua template script
if (ShouldWrapInTemplate)
{
cCSLock Lock(m_CS);
cLuaState::cLock lock(m_TemplateScript);
cCSLock LockSelf(m_CS);
cLuaState::cLock LockTemplate(m_TemplateScript);
if (m_TemplateScript.Call("ShowPage", this, &TemplateRequest, cLuaState::Return, Template))
{
cHTTPOutgoingResponse Resp;