summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-05-20 14:34:55 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-05-20 14:34:55 +0100
commit790dbcf244cd457692f084f99edbed64fa2cde15 (patch)
tree5ddea44dcacb24ea42af87e4055baf31ce254e17
parenta749a8f513b881ff35f1de0e225b58aa6575460f (diff)
downloadrabbitmq-server-790dbcf244cd457692f084f99edbed64fa2cde15.tar.gz
...and the other bits I forgot.
-rw-r--r--src/rabbit_mirror_queue_slave.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl
index 46020271..63a43197 100644
--- a/src/rabbit_mirror_queue_slave.erl
+++ b/src/rabbit_mirror_queue_slave.erl
@@ -500,8 +500,9 @@ next_state(State = #state{backing_queue = BQ, backing_queue_state = BQS}) ->
confirm_messages(MsgIds, State #state {
backing_queue_state = BQS1 })),
case BQ:needs_timeout(BQS1) of
- true -> {ensure_sync_timer(State1), 0};
- false -> {stop_sync_timer(State1), hibernate}
+ false -> {stop_sync_timer(State1), hibernate};
+ idle -> {stop_sync_timer(State1), 0 };
+ timed -> {ensure_sync_timer(State1), 0 }
end.
backing_queue_timeout(State = #state { backing_queue = BQ }) ->