diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-29 15:48:15 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-29 15:48:15 +0100 |
commit | c1f805a18fddb59fc7d1bf798724d0a02285611a (patch) | |
tree | d7321befcc0442036d5fb5048781442bdfcc49c5 | |
parent | 64dbee37e5377532c68f14ac28913aaea0902fb7 (diff) | |
download | rabbitmq-server-c1f805a18fddb59fc7d1bf798724d0a02285611a.tar.gz |
This can only be true or false. Plus cosmetic.
-rw-r--r-- | src/rabbit_control_main.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl index b85cf8c0..1bd89933 100644 --- a/src/rabbit_control_main.erl +++ b/src/rabbit_control_main.erl @@ -472,11 +472,11 @@ wait_for_startup(Node, Pid) -> while_process_is_alive(Node, Pid, Activity) -> case process_up(Pid) of - true -> case Activity() of - true -> ok; - _Other -> timer:sleep(?EXTERNAL_CHECK_INTERVAL), - while_process_is_alive(Node, Pid, Activity) - end; + true -> case Activity() of + true -> ok; + false -> timer:sleep(?EXTERNAL_CHECK_INTERVAL), + while_process_is_alive(Node, Pid, Activity) + end; false -> {error, process_not_running} end. |