summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/httpd/luasrc')
-rw-r--r--libs/httpd/luasrc/httpd/handler/luci.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua
index 18715111f8..232883256e 100644
--- a/libs/httpd/luasrc/httpd/handler/luci.lua
+++ b/libs/httpd/luasrc/httpd/handler/luci.lua
@@ -55,6 +55,7 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
local res, id, data1, data2 = true, 0, nil, nil
local headers = {}
local status = 200
+ local active = true
local x = coroutine.create(luci.dispatcher.httpdispatch)
while not id or id < 3 do
@@ -81,9 +82,10 @@ function Luci.handle_get(self, request, sourcein, sinkerr)
local res, id, data = coroutine.resume(x)
if not res then
return nil, id
- elseif not id then
+ elseif not id or not active then
return true
elseif id == 5 then
+ active = false
return true
elseif id == 4 then
return data