diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-12-10 18:13:35 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-12-10 18:13:35 +0000 |
| commit | 387751f260096f27bc3a54e4ea8110f299ac2be7 (patch) | |
| tree | a4df45669520aecca254a132b43fea7b5fa2c61b /src | |
| parent | f7598709411deccc072178f86c995d661800226e (diff) | |
| parent | f5d472a1add8bbb2d159099d96fb8eb1f460a05b (diff) | |
| download | rabbitmq-server-git-387751f260096f27bc3a54e4ea8110f299ac2be7.tar.gz | |
merge bug25351 into stable
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; |
