Whitespace fixes

This commit is contained in:
Pieter Hintjens 2014-01-01 15:28:11 +01:00
parent 49a2902c82
commit 3ad8c61190

View File

@ -402,14 +402,11 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
outpipes_t::iterator it = outpipes.find (identity); outpipes_t::iterator it = outpipes.find (identity);
msg.close (); msg.close ();
if (it != outpipes.end ()) if (it != outpipes.end ()) {
{ if (!handover)
if (!handover) { // Ignore peers with duplicate ID
// Ignore peers with duplicate ID.
return false; return false;
} else {
else
{
// We will allow the new connection to take over this // We will allow the new connection to take over this
// identity. Temporarily assign a new identity to the // identity. Temporarily assign a new identity to the
// existing pipe so we can terminate it asynchronously. // existing pipe so we can terminate it asynchronously.