From 20205d33ba94546ce5b577dfcfacad43e4657164 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 18 Jan 2017 16:30:28 +0100 Subject: Webadmin: Added a missing CS lock. This fixes an assert when accessing the login-page and the plugin-failure pages in the webadmin. --- src/WebAdmin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp index 1e60b7c0e..6906c540f 100644 --- a/src/WebAdmin.cpp +++ b/src/WebAdmin.cpp @@ -341,6 +341,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT if (ShouldWrapInTemplate) { cCSLock Lock(m_CS); + cLuaState::cLock lock(m_TemplateScript); if (m_TemplateScript.Call("ShowPage", this, &TemplateRequest, cLuaState::Return, Template)) { cHTTPOutgoingResponse Resp; -- cgit v1.2.3