]> granicus.if.org Git - ejabberd/commitdiff
When stopping ejabberd, stop modules after broadcasting c2s shutdown (#1144)
authorBadlop <badlop@process-one.net>
Tue, 7 Jun 2016 16:41:38 +0000 (18:41 +0200)
committerBadlop <badlop@process-one.net>
Tue, 7 Jun 2016 16:41:38 +0000 (18:41 +0200)
src/ejabberd_app.erl

index 44d0db626dc473c8a2b03f43124b668b137b7699..703614f63bb7fe479b0edb5bb95dd76812114f01 100644 (file)
@@ -84,9 +84,9 @@ start(_, _) ->
 %% before shutting down the processes of the application.
 prep_stop(State) ->
     ejabberd_listener:stop_listeners(),
-    gen_mod:stop_modules(),
     ejabberd_admin:stop(),
     broadcast_c2s_shutdown(),
+    gen_mod:stop_modules(),
     timer:sleep(5000),
     State.