mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
On shutdown, first stop listeners, then modules (thanks to Vishal Xica)(EJAB-1566)
This commit is contained in:
parent
4d54bce621
commit
a47fd96cc8
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user