aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-07 19:35:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-07 19:35:58 +0100
commit47746e93d4b599b14ca33e414bde0a81dbcd08dd (patch)
tree84b4bd35ef7e1540744a615e9e92ac5fdc2a7205 /lualib
parentab3d1bc569698cef8c808b46ace802303dee2de9 (diff)
downloadrspamd-47746e93d4b599b14ca33e414bde0a81dbcd08dd.tar.gz
rspamd-47746e93d4b599b14ca33e414bde0a81dbcd08dd.zip
[Fix] Fix settings reload
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_settings.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua
index 67a33bb58..1f4dd5a7c 100644
--- a/lualib/lua_settings.lua
+++ b/lualib/lua_settings.lua
@@ -193,6 +193,14 @@ local function register_settings_id(str, settings)
if not post_init_added then
rspamd_config:add_post_init(register_settings_cb)
+ rspamd_config:add_config_unload(function()
+ if post_init_added then
+ known_ids = {}
+ post_init_added = false
+ end
+ post_init_performed = false
+ end)
+
post_init_added = true
end