Apply new cache options on mod_stream_mgmt reload

This commit is contained in:
Evgeny Khramtsov 2018-11-30 18:12:27 +03:00
parent 5d27c975dc
commit 59ce0ba6c8
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ stop(Host) ->
ejabberd_hooks:delete(c2s_closed, Host, ?MODULE, c2s_closed, 50),
ejabberd_hooks:delete(c2s_terminated, Host, ?MODULE, c2s_terminated, 50).
reload(_Host, _NewOpts, _OldOpts) ->
reload(_Host, NewOpts, _OldOpts) ->
init_cache(NewOpts),
?WARNING_MSG("module ~s is reloaded, but new configuration will take "
"effect for newly created client connections only", [?MODULE]).