Commit 5a6503e5 authored by Martin Sustrik's avatar Martin Sustrik

Bug in XREP and XREQ fixed (issue 280)

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 83975c1b
......@@ -264,7 +264,7 @@ bool zmq::xrep_t::xhas_in ()
return true;
// Try to read the next message to the pre-fetch buffer.
int rc = xrecv (&prefetched_msg, ZMQ_DONTWAIT);
int rc = xrep_t::xrecv (&prefetched_msg, ZMQ_DONTWAIT);
if (rc != 0 && errno == EAGAIN)
return false;
zmq_assert (rc == 0);
......
......@@ -86,7 +86,7 @@ bool zmq::xreq_t::xhas_in ()
return true;
// Try to read the next message to the pre-fetch buffer.
int rc = xrecv (&prefetched_msg, ZMQ_DONTWAIT);
int rc = xreq_t::xrecv (&prefetched_msg, ZMQ_DONTWAIT);
if (rc != 0 && errno == EAGAIN)
return false;
zmq_assert (rc == 0);
......
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