Permalink
Browse files

adapt to gen_utp:async_accept changes

  • Loading branch information...
vinoski committed Feb 26, 2013
1 parent 4e24eb3 commit 3917bb0db14d724ce315b906ef3d39a35f8280d8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/riak_core_handoff_listener.erl
@@ -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

0 comments on commit 3917bb0

Please sign in to comment.