diff options
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r-- | lib/LuaHttp.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index 993b7a1..8d24416 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -204,6 +204,10 @@ class LuaDomain : public Domain { } virtual void Do(const HttpRequest & req, HttpResponse * res) throw (GeneralException) { int i; + + Lua * oldL = L; + Lua * L = oldL->thread(false); + oldL->pop(); L->push(DOMAIN_REGISTRY); L->gettable(LUA_REGISTRYINDEX); |