From a2b669fdb9615705f4b91f0ccbb979048e8cce51 Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Tue, 6 Dec 2011 19:41:39 +0100 Subject: Handle only error return as evidence of no SCTP That is, remove the catch for the pre-R15 behaviour. --- lib/diameter/test/diameter_transport_SUITE.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3