diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2017-05-10 18:30:33 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2017-05-10 18:30:33 +0300 |
| commit | 886f1999b8da58859eb9d1242a5a2a518586358e (patch) | |
| tree | d4e850d1f0fd543a13ed9b8a6e2dec7191853aec /src/rabbit.erl | |
| parent | 6719f476a76a49e9c25a2fcfc73528a6eecc9ef2 (diff) | |
| parent | 139d515fd44aa0bef036556ce267d7f399f8ae05 (diff) | |
| download | rabbitmq-server-git-886f1999b8da58859eb9d1242a5a2a518586358e.tar.gz | |
Merge branch 'stable'
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 bc71994169..5ae58f57d1 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -471,7 +471,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(), @@ -642,31 +642,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() -> |
