When stopping ejabberd, stop modules after broadcasting c2s shutdown (#1144)
This commit is contained in:
parent
f8d2589ee5
commit
8a7b31ca63
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue