Skip to content

Commit

Permalink
When stopping ejabberd, stop modules after broadcasting c2s shutdown (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jun 7, 2016
1 parent f8d2589 commit 8a7b31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejabberd_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 8a7b31c

Please sign in to comment.