ipa_proto: start_listen: use correct ok/error pattern
The ok path only returned the port without an "ok". Also path back the ListenSock. Change-Id: I9b317c13089fae2406f401a1f420623de9a2dffa
This commit is contained in:
parent
bb49f95b7f
commit
c26105e165
|
@ -367,7 +367,7 @@ start_listen(LPort, NumServers, Opts) ->
|
|||
{ok, ListenSock} ->
|
||||
start_servers(NumServers, ListenSock, self()),
|
||||
{ok, Port} = inet:port(ListenSock),
|
||||
Port;
|
||||
{ok, ListenSock, Port};
|
||||
{error, Reason} ->
|
||||
{error, Reason}
|
||||
end.
|
||||
|
|
Loading…
Reference in New Issue