mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
Do not pass a message to the check_write method
The check_write method does not use the passed message. The parameter was needed to implement the swap. As the swap is not supported anymore, it is safe to remove this parameter.
This commit is contained in:
@@ -152,21 +152,15 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
|
||||
|
||||
if (it != outpipes.end ()) {
|
||||
current_out = it->second.pipe;
|
||||
msg_t empty;
|
||||
int rc = empty.init ();
|
||||
errno_assert (rc == 0);
|
||||
if (!current_out->check_write (&empty)) {
|
||||
if (!current_out->check_write ()) {
|
||||
it->second.active = false;
|
||||
more_out = false;
|
||||
current_out = NULL;
|
||||
}
|
||||
rc = empty.close ();
|
||||
errno_assert (rc == 0);
|
||||
} else if(fail_unroutable) {
|
||||
more_out = false;
|
||||
retval = EHOSTUNREACH;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int rc = msg_->close ();
|
||||
|
||||
Reference in New Issue
Block a user