summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-02-18 13:14:35 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-02-18 13:14:35 +0000
commitba0f9d7b68e8a26b57c7b030e5eea55309518660 (patch)
treeea430c733ba5181103ddb68e904f745c112b6b2b
parent16da4fdaf53e8c3f8337b0e0ee91e4f3084776e1 (diff)
parent9ba414dc72130ab0513a2f30ce17f442bb8f1c09 (diff)
downloadrabbitmq-server-ba0f9d7b68e8a26b57c7b030e5eea55309518660.tar.gz
Merge bug25868 (again)
-rw-r--r--src/rabbit_reader.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index b1d0e275..60e026a4 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -1077,11 +1077,10 @@ i(state, #v1{connection_state = ConnectionState,
last_blocked_by = WasBlockedBy,
last_blocked_at = T}}) ->
Recently = T =/= never andalso timer:now_diff(erlang:now(), T) < 5000000,
- case {credit_flow:blocked() andalso Alarms =:= [],
- WasBlockedBy, Recently} of
- {true, _, _} -> flow;
- {false, flow, true} -> flow;
- {_, _, _} -> ConnectionState
+ case {credit_flow:blocked(), WasBlockedBy, Alarms, Recently} of
+ {true, _, [], _} -> flow;
+ {_, flow, [], true} -> flow;
+ {_, _, _, _} -> ConnectionState
end;
i(Item, #v1{connection = Conn}) -> ic(Item, Conn).