aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/transport/diameter_tcp.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diameter/src/transport/diameter_tcp.erl')
-rw-r--r--lib/diameter/src/transport/diameter_tcp.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/diameter/src/transport/diameter_tcp.erl b/lib/diameter/src/transport/diameter_tcp.erl
index 01f5bb8e66..1622e1b3d4 100644
--- a/lib/diameter/src/transport/diameter_tcp.erl
+++ b/lib/diameter/src/transport/diameter_tcp.erl
@@ -555,8 +555,9 @@ transition({P, Sock, Bin}, #transport{socket = Sock,
recv(Bin, S);
%% Make a new throttling callback after a timeout.
-transition(throttle, #transport{throttled = B} = S) ->
- true = false /= B, %% assert
+transition(throttle, #transport{throttled = false}) ->
+ ok;
+transition(throttle, S) ->
throttle(S);
%% Capabilties exchange has decided on whether or not to run over TLS.