25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01: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,
%% before shutting down the processes of the application.
prep_stop(State) ->
ejabberd_listener:stop_listeners(),
stop_modules(),
ejabberd_admin:stop(),
broadcast_c2s_shutdown(),