On shutdown, first stop listeners, then modules (thanks to Vishal Xica)(EJAB-1566)

This commit is contained in:
Badlop 2012-07-25 13:02:21 +02:00
parent 4d54bce621
commit a47fd96cc8
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ start(_, _) ->
%% This function is called when an application is about to be stopped,
%% before shutting down the processes of the application.
prep_stop(State) ->
ejabberd_listener:stop_listeners(),
stop_modules(),
ejabberd_admin:stop(),
broadcast_c2s_shutdown(),