summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ypipe.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ypipe.hpp b/src/ypipe.hpp
index 26f021c..1785b71 100644
--- a/src/ypipe.hpp
+++ b/src/ypipe.hpp
@@ -127,7 +127,7 @@ namespace zmq
inline bool check_read ()
{
// Was the value prefetched already? If so, return.
- if (&queue.front () != r)
+ if (&queue.front () != r && r)
return true;
// There's no prefetched value, so let us prefetch more values.