summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-06-28 13:34:01 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-06-28 13:34:01 +0100
commit49caec2dcc9235696715bfd0d2a6a6c7b9961729 (patch)
tree718f74cb20c66fb60292ed0bd8f8d5ad9ec29fed /src
parentce9ffa11b95435227c8e7b8d18c41a5c3189ac52 (diff)
downloadrabbitmq-server-git-49caec2dcc9235696715bfd0d2a6a6c7b9961729.tar.gz
init:stop knows better than us. It makes sure applications are taken down in the right order (which we were not doing).
Diffstat (limited to 'src')
-rw-r--r--src/rabbit.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 100cacb0e8..5f727a823a 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -211,11 +211,7 @@ stop() ->
ok = rabbit_misc:stop_applications(?APPS).
stop_and_halt() ->
- try
- stop()
- after
- init:stop()
- end,
+ init:stop(),
ok.
status() ->