24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

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

View File

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