summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-05-29 15:48:15 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-05-29 15:48:15 +0100
commitc1f805a18fddb59fc7d1bf798724d0a02285611a (patch)
treed7321befcc0442036d5fb5048781442bdfcc49c5
parent64dbee37e5377532c68f14ac28913aaea0902fb7 (diff)
downloadrabbitmq-server-c1f805a18fddb59fc7d1bf798724d0a02285611a.tar.gz
This can only be true or false. Plus cosmetic.
-rw-r--r--src/rabbit_control_main.erl10
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.