summaryrefslogtreecommitdiff
path: root/src/ypipe.hpp
diff options
context:
space:
mode:
authorMartin Lucina <martin@lucina.net>2012-01-23 08:53:29 +0100
committerMartin Lucina <martin@lucina.net>2012-01-23 08:53:29 +0100
commit2c416a793ea781273a5da6742211f5f01af13a2b (patch)
treeb8ede23ec38d4aab9595a517b4b9894df40c2cae /src/ypipe.hpp
parent5ba1cb20fe6f6699cef1cc726718e760cd4c9af1 (diff)
Imported Upstream version 2.0.10upstream/2.0.10
Diffstat (limited to 'src/ypipe.hpp')
-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.