]> granicus.if.org Git - ejabberd/commitdiff
Run ejabberd_started hook earlier
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 29 Sep 2018 20:06:34 +0000 (23:06 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 29 Sep 2018 20:06:34 +0000 (23:06 +0300)
src/ejabberd_app.erl

index 3fead96d9c19472954b65dc81da09a0989e121fa..3cdab80fec53fed94764fc08ab43a18e723e604a 100644 (file)
@@ -55,11 +55,11 @@ start(normal, _Args) ->
                    ejabberd_system_monitor:start(),
                    register_elixir_config_hooks(),
                    ejabberd_cluster:wait_for_sync(infinity),
+                   ejabberd_hooks:run(ejabberd_started, []),
                    {T2, _} = statistics(wall_clock),
                    ?INFO_MSG("ejabberd ~s is started in the node ~p in ~.2fs",
                              [ejabberd_config:get_version(),
                               node(), (T2-T1)/1000]),
-                   ejabberd_hooks:run(ejabberd_started, []),
                    lists:foreach(fun erlang:garbage_collect/1, processes()),
                    {ok, SupPid};
                Err ->