From 0da4f7eaa274e33065c5a9ec031af5d971112d66 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Aug 2012 12:24:29 +0000 Subject: Fixed cWebPlugin_Lua being not thread safe. And I don't know why, but it still crashes in Lua sometimes o_O WebAdmin chat now supports infinite number of chat messages (only client side). The client requests only NEW chat messages from the server. git-svn-id: http://mc-server.googlecode.com/svn/trunk@776 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebPlugin_Lua.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/cWebPlugin_Lua.cpp') diff --git a/source/cWebPlugin_Lua.cpp b/source/cWebPlugin_Lua.cpp index e22c59961..7d17378f9 100644 --- a/source/cWebPlugin_Lua.cpp +++ b/source/cWebPlugin_Lua.cpp @@ -79,6 +79,7 @@ bool cWebPlugin_Lua::AddTab( const char* a_Title, lua_State * a_LuaState, int a_ std::string cWebPlugin_Lua::HandleRequest( HTTPRequest* a_Request ) { + cCSLock( m_Plugin->GetCriticalSection() ); lua_State* LuaState = m_Plugin->GetLuaState(); std::string RetVal = ""; -- cgit v1.2.3