diff options
author | Simon MacMullen <simon@babysimon.co.uk> | 2012-11-21 14:21:54 +0000 |
---|---|---|
committer | Simon MacMullen <simon@babysimon.co.uk> | 2012-11-21 14:21:54 +0000 |
commit | b7c18bef2f95c242865f21a43d912a02d0a51ecd (patch) | |
tree | 4a3e95243d9a42ef30970c06a0dd91fb1e8a996a | |
parent | f2b6a7d5bfc5376d4df491a36fa84ac8f56c963d (diff) | |
download | rabbitmq-server-b7c18bef2f95c242865f21a43d912a02d0a51ecd.tar.gz |
Useful guard.
-rw-r--r-- | src/rabbit_mirror_queue_misc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl index 2075f878..58f20476 100644 --- a/src/rabbit_mirror_queue_misc.erl +++ b/src/rabbit_mirror_queue_misc.erl @@ -183,7 +183,7 @@ start_child(Name, MirrorNode, Q) -> fun () -> rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q]) end) of - {ok, SPid} -> + {ok, SPid} when is_pid(SPid) -> rabbit_log:info("Adding mirror of ~s on node ~p: ~p~n", [rabbit_misc:rs(Name), MirrorNode, SPid]), {ok, started}; |