aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-14 19:29:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-14 19:29:14 +0100
commit47c14afb4e24547f029862beae65de3526851d7f (patch)
tree4c22713655880bbafb8d8ad28956cde18f5185b9 /lualib
parenta7a0800daba34acc86308d4ba75b8fd8c5fce57c (diff)
downloadrspamd-47c14afb4e24547f029862beae65de3526851d7f.tar.gz
rspamd-47c14afb4e24547f029862beae65de3526851d7f.zip
[Project] Fix some more issues
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_settings.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua
index 5cd2fb8fa..f66db6a06 100644
--- a/lualib/lua_settings.lua
+++ b/lualib/lua_settings.lua
@@ -22,7 +22,7 @@ limitations under the License.
local exports = {}
local known_ids = {}
-local on_load_added = false
+local post_init_added = false
local function register_settings_cb()
for _,set in pairs(known_ids) do
@@ -116,9 +116,9 @@ local function register_settings_id(str, settings)
}
end
- if not on_load_added then
- rspamd_config:add_on_load(register_settings_cb)
- on_load_added = true
+ if not post_init_added then
+ rspamd_config:add_post_init(register_settings_cb)
+ post_init_added = true
end
return numeric_id