Permalink
Browse files

Fixed dialyzer warning

  • Loading branch information...
1 parent 974ba8d commit fe21e13d38414cb81a844d640a7746f828394e99 Gianfranco Alongi committed Mar 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Two/Solution/src/server.erl
@@ -129,8 +129,8 @@ pick_aux([],_,Res) ->
pick_aux([P|T],From,Res) ->
pick_aux(T,From,[proplists:get_value(P,From)|Res]).
-close_and_remove_selected_port(PortNumber,[#port{number = PortNumber,
- socket = Sock} | Ports]) ->
+close_and_remove_selected_port(PortNumber,[{_,#port{number = PortNumber,
+ socket = Sock},_} | Ports]) ->
gen_tcp:close(Sock),
Ports;
close_and_remove_selected_port(PortNumber,[X|Ports]) ->

0 comments on commit fe21e13

Please sign in to comment.