diff options
-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 |