diff options
author | Matthias Radestock <matthias@lshift.net> | 2008-12-10 11:39:11 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2008-12-10 11:39:11 +0000 |
commit | 1808f14c5d65da43e69acc91e16ce6dbe6eac364 (patch) | |
tree | af0b2f2387abed2cced551f1d82fc17808ba3d1a | |
parent | 49f1e0bd5c520e1a0cf257c2b24971f559b01086 (diff) | |
download | rabbitmq-server-1808f14c5d65da43e69acc91e16ce6dbe6eac364.tar.gz |
handle case when connection is not fully initialised yet
-rw-r--r-- | src/rabbit_reader.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index 10c6e0ca..3f8d7cac 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -686,6 +686,8 @@ i(channels, #v1{}) -> length(all_channels()); i(user, #v1{connection = #connection{user = #user{username = Username}}}) -> Username; +i(user, #v1{connection = #connection{user = none}}) -> + none; i(vhost, #v1{connection = #connection{vhost = VHost}}) -> VHost; i(timeout, #v1{connection = #connection{timeout_sec = Timeout}}) -> |