diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-09 17:10:19 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-09 17:10:19 +0100 |
commit | 1bd3c7adc0b94c5d9a8bceb5166aceba1fa52d70 (patch) | |
tree | 5eaebe34bed70519a48aa2380ede20e4fe84e21a /src/rabbit_connection_sup.erl | |
parent | 2222b5fd4e118ec335d29d87d634bf37f3f22610 (diff) | |
download | rabbitmq-server-1bd3c7adc0b94c5d9a8bceb5166aceba1fa52d70.tar.gz |
Arbitrarily decide to make the channel_sup_sup the very first thing that gets started and thus the last that gets stopped
Diffstat (limited to 'src/rabbit_connection_sup.erl')
-rw-r--r-- | src/rabbit_connection_sup.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_connection_sup.erl b/src/rabbit_connection_sup.erl index f097f80a..5993044c 100644 --- a/src/rabbit_connection_sup.erl +++ b/src/rabbit_connection_sup.erl @@ -41,16 +41,16 @@ start_link() -> {ok, SupPid} = supervisor2:start_link(?MODULE, []), - {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, Collector} = + supervisor2:start_child( + SupPid, + {collector, {rabbit_queue_collector, start_link, []}, + intrinsic, ?MAX_WAIT, worker, [rabbit_queue_collector]}), {ok, _ReaderPid} = supervisor2:start_child( SupPid, |