1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Fix mod_mam reloading

This commit is contained in:
Evgeniy Khramtsov 2017-11-15 11:23:22 +03:00
parent 0c6ef98d01
commit ebb97bec44

View file

@ -190,7 +190,7 @@ reload(Host, NewOpts, OldOpts) ->
true -> true ->
ok ok
end, end,
ets_cache:setopts(archive_prefs_cache, NewOpts), ets_cache:setopts(archive_prefs_cache, cache_opts(Host, NewOpts)),
case gen_mod:is_equal_opt(iqdisc, NewOpts, OldOpts, gen_iq_handler:iqdisc(Host)) of case gen_mod:is_equal_opt(iqdisc, NewOpts, OldOpts, gen_iq_handler:iqdisc(Host)) of
{false, IQDisc, _} -> {false, IQDisc, _} ->
register_iq_handlers(Host, IQDisc); register_iq_handlers(Host, IQDisc);