From 94511c36e377a52bebdd8b84f297e1b89ed39d54 Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Fri, 28 Sep 2012 16:29:53 +0100 Subject: We want to catch here, if sup:start_child exits the rabbit_amqqueue:with we are in will convert any exit to not_found. Which is unlikely to be helpful --- src/rabbit_mirror_queue_misc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl index 2e26ebfc..8aa860a7 100644 --- a/src/rabbit_mirror_queue_misc.erl +++ b/src/rabbit_mirror_queue_misc.erl @@ -163,7 +163,7 @@ add_mirror(QName, MirrorNode) -> end). start_child(Name, MirrorNode, Q) -> - case rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q]) of + case catch rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q]) of {ok, undefined} -> %% this means the mirror process was %% already running on the given node. -- cgit v1.2.1