mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
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
Block a user