Linked network writer pid to channel process

This commit is contained in:
0x6e6562 2008-05-15 09:40:35 +00:00
parent fe61df8970
commit 73960b4e0a
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ handle_cast({cast, Method, Content}, State = #channel_state{writer_pid = Writer,
%% Registers the direct channel peer when using the direct client
handle_cast({register_direct_peer, Peer}, State) ->
link(Peer),
NewState = State#channel_state{writer_pid = Peer},
{noreply, NewState};