summaryrefslogtreecommitdiff
path: root/src
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
commitc5edb3dbca4f3e046101203e2e77bd545790a674 (patch)
tree5ddea44dcacb24ea42af87e4055baf31ce254e17 /src
parent8bd0cbd78611086198336b2f35a0dec3cb8de551 (diff)
downloadrabbitmq-server-git-c5edb3dbca4f3e046101203e2e77bd545790a674.tar.gz
...and the other bits I forgot.
Diffstat (limited to 'src')
-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 4602027118..63a43197dd 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 }) ->