mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-21 15:12:03 +08:00
Fix return value of send for router socket
This commit is contained in:
parent
ed65271c52
commit
1e2564a55f
@ -164,7 +164,8 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
|
|||||||
errno_assert (rc == 0);
|
errno_assert (rc == 0);
|
||||||
} else if(fail_unroutable) {
|
} else if(fail_unroutable) {
|
||||||
more_out = false;
|
more_out = false;
|
||||||
retval = EHOSTUNREACH;
|
errno = EHOSTUNREACH;
|
||||||
|
retval = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user