mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
small refactoring
This commit is contained in:
@@ -404,15 +404,12 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
|
||||
rc = probe_msg_.init ();
|
||||
errno_assert (rc == 0);
|
||||
|
||||
ok = pipe_->write (&probe_msg_);
|
||||
rc = pipe_->write (&probe_msg_);
|
||||
zmq_assert (rc);
|
||||
pipe_->flush ();
|
||||
|
||||
rc = probe_msg_.close ();
|
||||
errno_assert (rc == 0);
|
||||
|
||||
// Ignore not probed peers
|
||||
if (!ok)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user