When stopping ejabberd, stop modules after broadcasting c2s shutdown (#1144)

This commit is contained in:
Badlop 2016-06-07 18:41:38 +02:00
parent f8d2589ee5
commit 8a7b31ca63
1 changed files with 1 additions and 1 deletions

View File

@ -84,9 +84,9 @@ start(_, _) ->
%% before shutting down the processes of the application.
prep_stop(State) ->
ejabberd_listener:stop_listeners(),
gen_mod:stop_modules(),
ejabberd_admin:stop(),
broadcast_c2s_shutdown(),
gen_mod:stop_modules(),
timer:sleep(5000),
State.