diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2023-07-10 19:43:15 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2024-02-28 14:24:22 +0100 |
commit | c26105e16566c7af70c948cded59a7aee01ca996 (patch) | |
tree | 6b94abadf84c8db61db8ccf14860efa7f59f5cc7 /src | |
parent | bb49f95b7f1a6f0309d019e07c529a507a47f510 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/ipa_proto.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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. |