diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2017-05-10 18:29:11 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2017-05-10 18:29:11 +0300 |
| commit | 139d515fd44aa0bef036556ce267d7f399f8ae05 (patch) | |
| tree | 7e12d887f6c556e77b2d29b3c42171de8ed353b9 /src/rabbit.erl | |
| parent | de2843dc2aa0d6a047e5aa2ca2dd6b9bc3a01900 (diff) | |
| download | rabbitmq-server-git-139d515fd44aa0bef036556ce267d7f399f8ae05.tar.gz | |
per discussion with @gerhard.
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 343f1d2827..d328a78d45 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -436,7 +436,7 @@ stop() -> undefined -> ok; _ -> rabbit_log:info("RabbitMQ hasn't finished starting yet. Waiting for startup to finish before stopping..."), - wait_to_finish_booting() + wait_for_boot_to_finish() end, rabbit_log:info("RabbitMQ is asked to stop...~n", []), Apps = ?APPS ++ rabbit_plugins:active(), @@ -605,31 +605,31 @@ handle_app_error(Term) -> await_startup() -> case is_booting() of - true -> wait_to_finish_booting(); + true -> wait_for_boot_to_finish(); false -> case is_running() of true -> ok; - false -> wait_to_start_booting(), - wait_to_finish_booting() + false -> wait_for_boot_to_start(), + wait_for_boot_to_finish() end end. is_booting() -> whereis(rabbit_boot) /= undefined. -wait_to_start_booting() -> +wait_for_boot_to_start() -> case whereis(rabbit_boot) of undefined -> timer:sleep(100), - wait_to_start_booting(); + wait_for_boot_to_start(); _ -> ok end. -wait_to_finish_booting() -> +wait_for_boot_to_finish() -> case whereis(rabbit_boot) of undefined -> true = is_running(), ok; _ -> timer:sleep(100), - wait_to_finish_booting() + wait_for_boot_to_finish() end. status() -> |
