summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-05-25 12:35:21 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-05-25 12:35:21 +0100
commited73a0d3c85aa3bd0fe7226f4c3c7de0f1452f02 (patch)
tree093c7679d67e8b262e5d885f594af3a3dbce002e
parent0e0bcf22aad825811ccb7b633bfcfa134dde3d0e (diff)
downloadrabbitmq-server-ed73a0d3c85aa3bd0fe7226f4c3c7de0f1452f02.tar.gz
Not quite sure how I managed to get that quite so wrong...
-rw-r--r--src/rabbit_amqqueue.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index 50f5a9da..268199e5 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -259,8 +259,7 @@ with(Name, F, E) ->
{ok, Q = #amqqueue{mirror_pids = []}} ->
rabbit_misc:with_exit_handler(E, fun () -> F(Q) end);
{ok, Q} ->
- timer:sleep(25),
- E1 = fun () -> with(Name, F, E) end,
+ E1 = fun () -> timer:sleep(25), with(Name, F, E) end,
rabbit_misc:with_exit_handler(E1, fun () -> F(Q) end);
{error, not_found} ->
E()