summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_framing_channel.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_framing_channel.erl b/src/rabbit_framing_channel.erl
index b1e42e598c..2e9f02a3e0 100644
--- a/src/rabbit_framing_channel.erl
+++ b/src/rabbit_framing_channel.erl
@@ -40,7 +40,9 @@
%%--------------------------------------------------------------------
start_link() ->
- start_link(rabbit_channel_sup:channel(self())).
+ Parent = self(),
+ {ok, proc_lib:spawn_link(
+ fun () -> mainloop(rabbit_channel_sup:channel(Parent)) end)}.
start_link(ChannelPid) ->
{ok, proc_lib:spawn_link(fun() -> mainloop(ChannelPid) end)}.