summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-12-10 18:09:45 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-12-10 18:09:45 +0000
commitf5d472a1add8bbb2d159099d96fb8eb1f460a05b (patch)
treea4df45669520aecca254a132b43fea7b5fa2c61b
parent066471f728bee64f29309c3c261a02e14e557e49 (diff)
downloadrabbitmq-server-git-f5d472a1add8bbb2d159099d96fb8eb1f460a05b.tar.gz
Those catches do no really do anything.
-rw-r--r--src/rabbit_vm.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl
index 62feca7906..db674f91d8 100644
--- a/src/rabbit_vm.erl
+++ b/src/rabbit_vm.erl
@@ -127,9 +127,9 @@ plugin_memory() ->
is_plugin(atom_to_list(App))]).
plugin_memory(App) ->
- case catch application_controller:get_master(App) of
+ case application_controller:get_master(App) of
undefined -> 0;
- Master -> case catch application_master:get_child(Master) of
+ Master -> case application_master:get_child(Master) of
{Pid, _} when is_pid(Pid) -> sup_memory(Pid);
Pid when is_pid(Pid) -> sup_memory(Pid);
_ -> 0