diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-25 12:35:21 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-05-25 12:35:21 +0100 |
| commit | 5a67647632c1327b3081fe58a571d92a0be1cb97 (patch) | |
| tree | 093c7679d67e8b262e5d885f594af3a3dbce002e | |
| parent | 6855080f826159e15bef9dfa048c953f74c8ee6e (diff) | |
| download | rabbitmq-server-git-5a67647632c1327b3081fe58a571d92a0be1cb97.tar.gz | |
Not quite sure how I managed to get that quite so wrong...
| -rw-r--r-- | src/rabbit_amqqueue.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl index 50f5a9da27..268199e5c2 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() |
