summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-06-26 18:28:43 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-06-26 18:28:43 +0100
commit14f3091f8ff207620a12595ca003edbf8b85497e (patch)
treebc34ec31db57e9daf987d2a197b91230f25d4020
parent398ae196b2376f17d161a1e8fc5775ddaedb5493 (diff)
downloadrabbitmq-server-14f3091f8ff207620a12595ca003edbf8b85497e.tar.gz
essentially cosmetic tweak
the result of terminate_and_shutdown is not needed, but it looks odd to throw away State1 in one branch.
-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 c1fa048d..e388ccf2 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -220,7 +220,7 @@ terminate_shutdown(Fun, State) ->
State1 = #q{backing_queue = BQ, backing_queue_state = BQS} =
stop_sync_timer(stop_rate_timer(State)),
case BQS of
- undefined -> State;
+ undefined -> State1;
_ -> ok = rabbit_memory_monitor:deregister(self()),
BQS1 = lists:foldl(
fun (#cr{txn = none}, BQSN) ->