summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-07-21 15:29:42 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-07-21 15:29:42 +0100
commit990da82944cd356c7ce9c909f250385dc07949f2 (patch)
treeb79fe3821804603409090d7330d885e9ae7eb053 /src
parent942ac6ae6e624a4e0edddd8faf318d142f3af9eb (diff)
downloadrabbitmq-server-git-990da82944cd356c7ce9c909f250385dc07949f2.tar.gz
Correct shutdown to use API
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index e043492a15..9cfc9e27ee 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -233,7 +233,7 @@ handle_cast({flushed, QPid}, State) ->
{noreply, queue_blocked(QPid, State)};
handle_cast(terminate, State = #ch{parent_pid = ParentPid}) ->
- supervisor2:stop(ParentPid),
+ rabbit_channel_sup:stop(ParentPid),
{stop, shutdown, State};
handle_cast({command, Msg}, State = #ch{writer_pid = WriterPid}) ->