Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adapt to gen_utp:async_accept changes

  • Loading branch information...
commit 3917bb0db14d724ce315b906ef3d39a35f8280d8 1 parent 4e24eb3
Steve Vinoski vinoski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/riak_core_handoff_listener.erl
4 src/riak_core_handoff_listener.erl
View
@@ -71,7 +71,7 @@ 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}
@@ -79,7 +79,7 @@ handle_info(start_listen, #state{portnum=Port, ipaddr=IpAddr}=State) ->
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
Please sign in to comment.
Something went wrong with that request. Please try again.