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 | 09fc9efccbca431976a24df328bf30ab85574dd9 (patch) | |
| tree | af0b2f2387abed2cced551f1d82fc17808ba3d1a /src | |
| parent | 0f4dcb03ee07334353c306d5b00f906134a677f5 (diff) | |
| download | rabbitmq-server-git-09fc9efccbca431976a24df328bf30ab85574dd9.tar.gz | |
handle case when connection is not fully initialised yet
Diffstat (limited to 'src')
| -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 10c6e0ca09..3f8d7cac5f 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}}) -> |
