pespin has uploaded this change for review.

View Change

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.

To view, visit change 36104. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: erlang/osmo_ss7
Gerrit-Branch: master
Gerrit-Change-Id: I9b317c13089fae2406f401a1f420623de9a2dffa
Gerrit-Change-Number: 36104
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-CC: lynxis lazus <lynxis@fe80.eu>
Gerrit-MessageType: newchange