Skip to content

Commit 5930d04

Browse files
author
Emile Joubert
committed
Merged bug24591 into default
2 parents 8d9e666 + fa9a7e7 commit 5930d04

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/rabbit_networking.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,15 @@ connections() ->
307307
rabbit_networking, connections_local, []).
308308

309309
connections_local() ->
310-
[rabbit_connection_sup:reader(ConnSup) ||
310+
[Reader ||
311311
{_, ConnSup, supervisor, _}
312-
<- supervisor:which_children(rabbit_tcp_client_sup)].
312+
<- supervisor:which_children(rabbit_tcp_client_sup),
313+
Reader <- [try
314+
rabbit_connection_sup:reader(ConnSup)
315+
catch exit:{noproc, _} ->
316+
noproc
317+
end],
318+
Reader =/= noproc].
313319

314320
connection_info_keys() -> rabbit_reader:info_keys().
315321

0 commit comments

Comments
 (0)