aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-12-06 19:41:39 +0100
committerAnders Svensson <[email protected]>2011-12-16 18:25:29 +0100
commita2b669fdb9615705f4b91f0ccbb979048e8cce51 (patch)
treea3278528b357c01e8cff67439b6a8f6454cb522f /lib
parent8cfe29ec1757ff7c06585aa9a88b07387ae624d0 (diff)
downloadotp-a2b669fdb9615705f4b91f0ccbb979048e8cce51.tar.gz
otp-a2b669fdb9615705f4b91f0ccbb979048e8cce51.tar.bz2
otp-a2b669fdb9615705f4b91f0ccbb979048e8cce51.zip
Handle only error return as evidence of no SCTP
That is, remove the catch for the pre-R15 behaviour.
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl
index df7161fd1e..138135b0df 100644
--- a/lib/diameter/test/diameter_transport_SUITE.erl
+++ b/lib/diameter/test/diameter_transport_SUITE.erl
@@ -175,16 +175,13 @@ connect(Prot) ->
%% have_sctp/0
have_sctp() ->
- try gen_sctp:open() of
+ case gen_sctp:open() of
{ok, Sock} ->
gen_sctp:close(Sock),
true;
{error, E} when E == eprotonosupport;
E == esocktnosupport -> %% fail on any other reason
false
- catch
- error: badarg ->
- false
end.
%% if_sctp/2