pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo_ss7/+/36104?usp=email )
Change subject: ipa_proto: start_listen: use correct ok/error pattern ......................................................................
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 --- M src/ipa_proto.erl 1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_ss7 refs/changes/04/36104/1
diff --git a/src/ipa_proto.erl b/src/ipa_proto.erl index fcd594b..c96d6bb 100644 --- a/src/ipa_proto.erl +++ b/src/ipa_proto.erl @@ -367,7 +367,7 @@ {ok, ListenSock} -> start_servers(NumServers, ListenSock, self()), {ok, Port} = inet:port(ListenSock), - Port; + {ok, ListenSock, Port}; {error, Reason} -> {error, Reason} end.