diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-20 14:34:55 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-20 14:34:55 +0100 |
commit | 790dbcf244cd457692f084f99edbed64fa2cde15 (patch) | |
tree | 5ddea44dcacb24ea42af87e4055baf31ce254e17 | |
parent | a749a8f513b881ff35f1de0e225b58aa6575460f (diff) | |
download | rabbitmq-server-790dbcf244cd457692f084f99edbed64fa2cde15.tar.gz |
...and the other bits I forgot.
-rw-r--r-- | src/rabbit_mirror_queue_slave.erl | 5 |
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 }) -> |