diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-17 11:25:58 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-17 11:25:58 +0100 |
commit | 990c53d772565fc6967b1cad17587bcc1e82b153 (patch) | |
tree | fce14b723e9fce5015f0007b7b51dc014ed2f6cb | |
parent | 04c6113a9f40b08868b4c32cd1467002d849722c (diff) | |
download | rabbitmq-server-990c53d772565fc6967b1cad17587bcc1e82b153.tar.gz |
Add a sleep, to avoid tight spinning
-rw-r--r-- | src/rabbit_amqqueue.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl index 534d1002..8c374ef3 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} -> |