diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-12-10 18:09:45 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-12-10 18:09:45 +0000 |
commit | 79c8fc4161be23a8363201b879edc6766aac6a9d (patch) | |
tree | a4df45669520aecca254a132b43fea7b5fa2c61b | |
parent | 9377b5623f1e8fff956b204112982d0ae0aedb25 (diff) | |
download | rabbitmq-server-bug25351.tar.gz |
Those catches do no really do anything.bug25351
-rw-r--r-- | src/rabbit_vm.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl index 62feca79..db674f91 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 |