summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}) ->