Skip to content

Commit

Permalink
Fix return function for gen_statem
Browse files Browse the repository at this point in the history
  • Loading branch information
priestjim committed Sep 22, 2016
1 parent ef8b0bf commit f57b5e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gen_rpc_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ init({Peer}) ->
end,
ok = lager:info("event=start peer=\"~s\"", [gen_rpc_helper:peer_to_string(Peer)]),
%% Store the client's IP and the node in our state
{state_functions, waiting_for_socket, #state{peer=Peer,control=Control,list=ControlList}}.
{ok, waiting_for_socket, #state{peer=Peer,control=Control,list=ControlList}}.

callback_mode() ->
state_functions.
Expand Down
2 changes: 1 addition & 1 deletion src/gen_rpc_tcp_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ init({Peer}) ->
_OldVal = erlang:process_flag(trap_exit, true),
ok = lager:debug("event=start peer=\"~s\"", [gen_rpc_helper:peer_to_string(Peer)]),
%% Store the client's IP in our state
{state_functions, waiting_for_socket, #state{peer=Peer}}.
{ok, waiting_for_socket, #state{peer=Peer}}.

callback_mode() ->
state_functions.
Expand Down

0 comments on commit f57b5e2

Please sign in to comment.