Skip to content

Commit

Permalink
Handle call by gen_event:swap_handler (4233)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Sep 5, 2024
1 parent 4a49992 commit ef02d10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ejabberd_system_monitor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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{}}.

Expand Down

0 comments on commit ef02d10

Please sign in to comment.