osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-s1gw/+/37045?usp=email )
Change subject: sctp_server: fix terminate/2: match any Reason
......................................................................
sctp_server: fix terminate/2: match any Reason
Change-Id: I57f1604ef3febee6c330521a044271988110cf2a
---
M src/sctp_server.erl
1 file changed, 11 insertions(+), 2 deletions(-)
Approvals:
osmith: Looks good to me, approved; Verified
diff --git a/src/sctp_server.erl b/src/sctp_server.erl
index 4ba49eb..a2b722a 100644
--- a/src/sctp_server.erl
+++ b/src/sctp_server.erl
@@ -102,8 +102,8 @@
{noreply, State}.
-terminate(shutdown, State) ->
- logger:notice("Terminating ~p", [?MODULE]),
+terminate(Reason, State) ->
+ logger:notice("Terminating, reason ~p", [Reason]),
close_conns(State),
gen_sctp:close(State#server_state.sock),
ok.
--
To view, visit
https://gerrit.osmocom.org/c/osmo-s1gw/+/37045?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I57f1604ef3febee6c330521a044271988110cf2a
Gerrit-Change-Number: 37045
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: merged