From: Vladimír Čunát Date: Tue, 14 Apr 2020 05:55:29 +0000 (+0200) Subject: lua worker.bg_worker: also report missing cqueues X-Git-Tag: v5.1.0~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6ec06d5c9659004353cd9ca64e6e51d2acde3b;p=thirdparty%2Fknot-resolver.git lua worker.bg_worker: also report missing cqueues Otherwise people could get confusing errors like: > attempt to index field 'bg_worker' (a nil value) --- diff --git a/daemon/lua/sandbox.lua.in b/daemon/lua/sandbox.lua.in index 115bf5801..e5293d17b 100644 --- a/daemon/lua/sandbox.lua.in +++ b/daemon/lua/sandbox.lua.in @@ -638,4 +638,5 @@ else worker.sleep = disabled worker.map = disabled worker.coroutine = disabled + worker.bg_worker = setmetatable({}, { __index = disabled }) end