Skip to content

Commit

Permalink
adapt to gen_utp:async_accept changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vinoski committed Feb 26, 2013
1 parent 4e24eb3 commit 3917bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riak_core_handoff_listener.erl
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ handle_info(start_listen, #state{portnum=Port, ipaddr=IpAddr}=State) ->
SockOpts = [{ip, IpAddr},{active,false}|sock_opts()],
case gen_utp:listen(Port, SockOpts) of
{ok, LSock} ->
ok = gen_utp:async_accept(LSock),
{ok, _Ref} = gen_utp:async_accept(LSock),
{noreply, State#state{lsock=LSock}};
Err ->
{stop, Err, State}
end;
handle_info({utp_async, S, _}, #state{lsock=LSock}=State) ->
case new_connection(S, State) of
{ok, NewState} ->
ok = gen_utp:async_accept(LSock),
{ok, _Ref} = gen_utp:async_accept(LSock),
{noreply, NewState};
Else ->
Else
Expand Down

0 comments on commit 3917bb0

Please sign in to comment.