Commit 8da72710 authored by Ian Barber's avatar Ian Barber

Merge pull request #296 from hurtonm/fix_router_send

Fix return value of send for router socket
parents ed65271c 1e2564a5
......@@ -164,7 +164,8 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
errno_assert (rc == 0);
} else if(fail_unroutable) {
more_out = false;
retval = EHOSTUNREACH;
errno = EHOSTUNREACH;
retval = -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment