summaryrefslogtreecommitdiff
path: root/src/rabbit_networking.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-11-24 15:32:31 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-11-24 15:32:31 +0000
commit8138e14cae088583e93377ddd4fecd1981b9d48d (patch)
treee2ce1652b7d16b84ea386c053a1d29ca55822d77 /src/rabbit_networking.erl
parentf8bb22faff3fefc47c0dcc434117837e49d0c301 (diff)
downloadrabbitmq-server-8138e14cae088583e93377ddd4fecd1981b9d48d.tar.gz
Filter out connections which no longer exist.
Diffstat (limited to 'src/rabbit_networking.erl')
-rw-r--r--src/rabbit_networking.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 2c0912df..146d04cd 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -307,9 +307,11 @@ connections() ->
rabbit_networking, connections_local, []).
connections_local() ->
- [rabbit_connection_sup:reader(ConnSup) ||
+ [Reader ||
{_, ConnSup, supervisor, _}
- <- supervisor:which_children(rabbit_tcp_client_sup)].
+ <- supervisor:which_children(rabbit_tcp_client_sup),
+ Reader <- [rabbit_connection_sup:reader(ConnSup)],
+ Reader =/= noproc].
connection_info_keys() -> rabbit_reader:info_keys().