]> granicus.if.org Git - ejabberd/commitdiff
On shutdown, first stop listeners, then modules (thanks to Vishal Xica)(EJAB-1566)
authorBadlop <badlop@process-one.net>
Wed, 25 Jul 2012 11:02:21 +0000 (13:02 +0200)
committerBadlop <badlop@process-one.net>
Wed, 25 Jul 2012 11:02:21 +0000 (13:02 +0200)
src/ejabberd_app.erl

index ea467cbb8a43fe8665b868fddb8a7ff529a9a7c2..3550f58ecad0be8a62e6634147f93be0bd8c2692 100644 (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(),