summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-11-11 14:19:55 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2010-11-11 14:19:55 +0000
commit5516d4368f179aa3cdaf6eec63f5645c8a095b02 (patch)
treec05b06878427ff1c45b9b6e80250c8b62f803202
parent0b0be9e6f29b8a03b4aa4248ad78ab9e3066e62c (diff)
downloadrabbitmq-server-bug23495.tar.gz
Switch spawn order of channelsupsup and queue_collector within connection_supbug23495
-rw-r--r--src/rabbit_connection_sup.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_connection_sup.erl b/src/rabbit_connection_sup.erl
index b3821d3b..495baeb2 100644
--- a/src/rabbit_connection_sup.erl
+++ b/src/rabbit_connection_sup.erl
@@ -52,16 +52,16 @@
start_link() ->
{ok, SupPid} = supervisor2:start_link(?MODULE, []),
- {ok, ChannelSupSupPid} =
- supervisor2:start_child(
- SupPid,
- {channel_sup_sup, {rabbit_channel_sup_sup, start_link, []},
- intrinsic, infinity, supervisor, [rabbit_channel_sup_sup]}),
{ok, Collector} =
supervisor2:start_child(
SupPid,
{collector, {rabbit_queue_collector, start_link, []},
intrinsic, ?MAX_WAIT, worker, [rabbit_queue_collector]}),
+ {ok, ChannelSupSupPid} =
+ supervisor2:start_child(
+ SupPid,
+ {channel_sup_sup, {rabbit_channel_sup_sup, start_link, []},
+ intrinsic, infinity, supervisor, [rabbit_channel_sup_sup]}),
{ok, ReaderPid} =
supervisor2:start_child(
SupPid,