diff options
Diffstat (limited to 'src/daq')
-rw-r--r-- | src/daq/nginx-lua/s5-nginx.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daq/nginx-lua/s5-nginx.lua b/src/daq/nginx-lua/s5-nginx.lua index ab62bab..a5fb798 100644 --- a/src/daq/nginx-lua/s5-nginx.lua +++ b/src/daq/nginx-lua/s5-nginx.lua @@ -109,11 +109,11 @@ end function _SFIVE.fetch() ngx.log(ngx.INFO, "SFive(fetch): client connected") - local ok, err = ngx.on_abort(function() ngx.exit(ngx.HTTP_GONE) end) - if not ok then - ngx.log(ngx.ERR, "failed to register the on_abort callback: ", err) - ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) - end + local ok, err = ngx.on_abort(function() ngx.exit(ngx.HTTP_GONE) end) + if not ok then + ngx.log(ngx.ERR, "failed to register the on_abort callback: ", err) + ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) + end while true do logs = sfive_data:get_keys() |