Skip to content
This repository
Browse code

adapt to gen_utp:async_accept changes

  • Loading branch information...
commit 3917bb0db14d724ce315b906ef3d39a35f8280d8 1 parent 4e24eb3
Steve Vinoski authored February 26, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/riak_core_handoff_listener.erl
4  src/riak_core_handoff_listener.erl
@@ -71,7 +71,7 @@ handle_info(start_listen, #state{portnum=Port, ipaddr=IpAddr}=State) ->
71 71
     SockOpts = [{ip, IpAddr},{active,false}|sock_opts()],
72 72
     case gen_utp:listen(Port, SockOpts) of
73 73
         {ok, LSock} ->
74  
-            ok = gen_utp:async_accept(LSock),
  74
+            {ok, _Ref} = gen_utp:async_accept(LSock),
75 75
             {noreply, State#state{lsock=LSock}};
76 76
         Err ->
77 77
             {stop, Err, State}
@@ -79,7 +79,7 @@ handle_info(start_listen, #state{portnum=Port, ipaddr=IpAddr}=State) ->
79 79
 handle_info({utp_async, S, _}, #state{lsock=LSock}=State) ->
80 80
     case new_connection(S, State) of
81 81
         {ok, NewState} ->
82  
-            ok = gen_utp:async_accept(LSock),
  82
+            {ok, _Ref} = gen_utp:async_accept(LSock),
83 83
             {noreply, NewState};
84 84
         Else ->
85 85
             Else

0 notes on commit 3917bb0

Please sign in to comment.
Something went wrong with that request. Please try again.