From a47fd96cc8019a782614c20d14e6fe010d5aa4ad Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 25 Jul 2012 13:02:21 +0200 Subject: [PATCH] On shutdown, first stop listeners, then modules (thanks to Vishal Xica)(EJAB-1566) --- src/ejabberd_app.erl | 1 + 1 file changed, 1 insertion(+) 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(), -- 2.40.0