summaryrefslogtreecommitdiff
path: root/src/rabbit_direct.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_direct.erl')
-rw-r--r--src/rabbit_direct.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index 931e1e4d..79c7a195 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -100,7 +100,7 @@ notify_auth_result(Username, AuthResult, ExtraProps) ->
EventProps = [{connection_type, direct}] ++
[{name, case Username of none -> ''; _ -> Username end}] ++
ExtraProps,
- rabbit_event:notify(AuthResult, EventProps).
+ rabbit_event:notify(AuthResult, [P || {_, V} = P <- EventProps, V =/= '']).
connect1(User, VHost, Protocol, Pid, Infos) ->
try rabbit_access_control:check_vhost_access(User, VHost, undefined) of