summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-02-20 20:24:32 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-02-20 20:24:32 +0000
commit6fdbdcfe1fd05d45ef06c9634726798e2e1d9539 (patch)
treed16cc45000081a9d6f72be46cbeab52ef5d507cd
parenta18a941f0a8d06e310fd03787d3c35ce82cdeec5 (diff)
downloadrabbitmq-server-6fdbdcfe1fd05d45ef06c9634726798e2e1d9539.tar.gz
oops
-rw-r--r--src/rabbit_amqqueue_process.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index c822c2e7..7a16865b 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -421,7 +421,7 @@ is_ch_blocked(#cr{unsent_message_count = Count, is_limit_active = Limited}) ->
Limited orelse Count >= ?UNSENT_MESSAGE_LIMIT.
maybe_send_drained(WasEmpty, State) ->
- case WasEmpty andalso is_empty(State) of
+ case (not WasEmpty) andalso is_empty(State) of
true -> [send_drained(C) || C <- all_ch_record()];
false -> ok
end.