aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-12-11 12:54:51 +0100
committerAnders Svensson <[email protected]>2013-01-15 18:51:46 +0100
commitf249c003742e26cdeb4efec51332d9c517f5516b (patch)
tree6a1eef8263ba0fe94baf86568cc0ea838b8aaf60 /lib/diameter/src/base
parenta249dda0938bf0b7de0c2331b1ddc69454b98d7d (diff)
downloadotp-f249c003742e26cdeb4efec51332d9c517f5516b.tar.gz
otp-f249c003742e26cdeb4efec51332d9c517f5516b.tar.bz2
otp-f249c003742e26cdeb4efec51332d9c517f5516b.zip
Send CER/CEA timeout events as documented
Diffstat (limited to 'lib/diameter/src/base')
-rw-r--r--lib/diameter/src/base/diameter_peer_fsm.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl
index c4320fcb99..858870566f 100644
--- a/lib/diameter/src/base/diameter_peer_fsm.erl
+++ b/lib/diameter/src/base/diameter_peer_fsm.erl
@@ -388,8 +388,9 @@ transition({diameter, {recv, Pkt}}, S) ->
recv(Pkt, S);
%% Timeout when still in the same state ...
-transition({timeout, PS}, #state{state = PS}) ->
- {stop, {capx(PS), timeout}};
+transition({timeout = T, PS}, #state{state = PS} = S) ->
+ close({capx(PS), T}, S),
+ stop;
%% ... or not.
transition({timeout, _}, _) ->