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:
parent
e3243fa35b
commit
941d51a6e7
@ -82,7 +82,9 @@ config_reloaded() ->
|
||||
%%%===================================================================
|
||||
%%% 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),
|
||||
{ok, #state{}}.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user