diff options
author | Badlop <badlop@process-one.net> | 2012-07-25 13:02:21 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2012-07-25 13:02:21 +0200 |
commit | a47fd96cc8019a782614c20d14e6fe010d5aa4ad (patch) | |
tree | 63134a7fc2ad95c42ff04edd5be3b4cbc1bba999 | |
parent | Send announce Message stanzas as Headline type instead of Normal (diff) |
On shutdown, first stop listeners, then modules (thanks to Vishal Xica)(EJAB-1566)
-rw-r--r-- | src/ejabberd_app.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_app.erl b/src/ejabberd_app.erl index ea467cbb8..3550f58ec 100644 --- a/src/ejabberd_app.erl +++ b/src/ejabberd_app.erl @@ -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(), |