aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_peer_fsm.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-08-26 21:18:47 +0200
committerAnders Svensson <[email protected]>2012-08-26 21:33:08 +0200
commitaa62ff77cee327bedb42a8d43320c0c40c99f3d3 (patch)
tree6b492503228f7add49b1e9f7e56f965d48afb2d8 /lib/diameter/src/base/diameter_peer_fsm.erl
parent30412e11d96828a519e11c200393dafb898010bc (diff)
downloadotp-aa62ff77cee327bedb42a8d43320c0c40c99f3d3.tar.gz
otp-aa62ff77cee327bedb42a8d43320c0c40c99f3d3.tar.bz2
otp-aa62ff77cee327bedb42a8d43320c0c40c99f3d3.zip
Minor spec and backwards compatibility fix
Diffstat (limited to 'lib/diameter/src/base/diameter_peer_fsm.erl')
-rw-r--r--lib/diameter/src/base/diameter_peer_fsm.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl
index d5e2d690cf..638d905195 100644
--- a/lib/diameter/src/base/diameter_peer_fsm.erl
+++ b/lib/diameter/src/base/diameter_peer_fsm.erl
@@ -121,6 +121,11 @@
%%% Output: Pid
%%% ---------------------------------------------------------------------------
+-spec start(T, [Opt], #diameter_service{})
+ -> pid()
+ when T :: {connect|accept, diameter:transport_ref()},
+ Opt :: diameter:transport_opt().
+
%% diameter_config requires a non-empty list of applications on the
%% service but diameter_service then constrains the list to any
%% specified on the transport in question. Check here that the list is
@@ -179,7 +184,7 @@ start_transport(Addrs0, T) ->
erlang:monitor(process, TPid),
q_next(TPid, Addrs0, Tmo, Data),
{TPid, addrs(Addrs, Addrs0)};
- {No} ->
+ No ->
exit({shutdown, No})
end.