summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-05-17 11:25:58 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-05-17 11:25:58 +0100
commit9327aa6dbd1f172353f5a811c3d7bf1356b7831d (patch)
treefce14b723e9fce5015f0007b7b51dc014ed2f6cb /src
parentf42f00c82076c3d2c756b0df1a1d74ec3eabe360 (diff)
downloadrabbitmq-server-git-9327aa6dbd1f172353f5a811c3d7bf1356b7831d.tar.gz
Add a sleep, to avoid tight spinning
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index 534d1002b9..8c374ef3cd 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -259,6 +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,
rabbit_misc:with_exit_handler(E1, fun () -> F(Q) end);
{error, not_found} ->