diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-12-10 18:15:01 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-12-10 18:15:01 +0000 |
| commit | 5c62109563c053732ccda664f30d7ba1bc4df050 (patch) | |
| tree | e224a44649b900d8790fb222b75ba227c4687144 /src | |
| parent | ae16c7fffdb6e58ff7840d9bbc512cf8db162c8e (diff) | |
| parent | 387751f260096f27bc3a54e4ea8110f299ac2be7 (diff) | |
| download | rabbitmq-server-git-5c62109563c053732ccda664f30d7ba1bc4df050.tar.gz | |
merge stable into default
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_vm.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl index e96792762c..db674f91d8 100644 --- a/src/rabbit_vm.erl +++ b/src/rabbit_vm.erl @@ -127,10 +127,13 @@ plugin_memory() -> is_plugin(atom_to_list(App))]). plugin_memory(App) -> - case catch application_master:get_child( - application_controller:get_master(App)) of - {Pid, _} -> sup_memory(Pid); - _ -> 0 + case application_controller:get_master(App) of + undefined -> 0; + 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 + end end. is_plugin("rabbitmq_" ++ _) -> true; |
