>From 5a6503e5c275c544e1447401e17a4746985614ea Mon Sep 17 00:00:00 2001
From: Martin Sustrik <sust...@250bpm.com>
Date: Tue, 15 Nov 2011 13:56:59 +0100
Subject: [PATCH] Bug in XREP and XREQ fixed (issue 280)

Signed-off-by: Martin Sustrik <sust...@250bpm.com>
---
 src/xrep.cpp |    2 +-
 src/xreq.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xrep.cpp b/src/xrep.cpp
index 336d4e5..f304b23 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -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);
diff --git a/src/xreq.cpp b/src/xreq.cpp
index 59d3f39..bf288ee 100644
--- a/src/xreq.cpp
+++ b/src/xreq.cpp
@@ -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);
-- 
1.7.0.4

_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to