Linked network writer pid to channel process
This commit is contained in:
parent
fe61df8970
commit
73960b4e0a
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue