diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-08-25 22:31:00 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-08-25 22:31:00 +0100 |
commit | 4456a1a46b36b472cc29641cee5fe7e15da5393a (patch) | |
tree | 3760413417c6b641373dc4b3a60d49736583f84e /src/rabbit_direct.erl | |
parent | 3b39cf36cdcee0cd1ae197238904ab5eaf70c096 (diff) | |
download | rabbitmq-server-4456a1a46b36b472cc29641cee5fe7e15da5393a.tar.gz |
one way to check whether rabbit is runningbug24377
and avoid timeouts in application:which_applications() in doing so
Diffstat (limited to 'src/rabbit_direct.erl')
-rw-r--r-- | src/rabbit_direct.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl index 68afaf5d..6f9a4650 100644 --- a/src/rabbit_direct.erl +++ b/src/rabbit_direct.erl @@ -72,7 +72,7 @@ list() -> %%---------------------------------------------------------------------------- connect(Username, VHost, Protocol, Pid, Infos) -> - case lists:keymember(rabbit, 1, application:which_applications()) of + case rabbit:is_running() of true -> case rabbit_access_control:check_user_login(Username, []) of {ok, User} -> |