25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Handle call by gen_event:swap_handler (#4233)

This commit is contained in:
Badlop 2024-09-05 17:05:40 +02:00
parent e3243fa35b
commit 941d51a6e7

View File

@ -82,7 +82,9 @@ config_reloaded() ->
%%%=================================================================== %%%===================================================================
%%% gen_event callbacks %%% gen_event callbacks
%%%=================================================================== %%%===================================================================
init([]) -> init({[], _}) -> % Called by gen_event:swap_handler
{ok, #state{}};
init([]) -> % Called by gen_event:add_handler
ejabberd_hooks:add(config_reloaded, ?MODULE, config_reloaded, 50), ejabberd_hooks:add(config_reloaded, ?MODULE, config_reloaded, 50),
{ok, #state{}}. {ok, #state{}}.