Skip to content

Commit

Permalink
Bug in XREP and XREQ fixed (issue 280)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information
sustrik committed Nov 15, 2011
1 parent 83975c1 commit 5a6503e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xrep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/xreq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a6503e

Please sign in to comment.