summaryrefslogtreecommitdiff
path: root/src/ypipe.hpp
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-10-21 16:21:20 +0200
committerMartin Lucina <martin@lucina.net>2012-01-23 08:53:31 +0100
commit3f0085ddbef1a44b6bb7a0b23af497d56e0025fa (patch)
tree0adac3a5b31b2a1d9a89ec5a797f34c1a3fdf27a /src/ypipe.hpp
parent90d73cba9cd1d1724f38ed82fc0eefb1781c9c20 (diff)
parent2c416a793ea781273a5da6742211f5f01af13a2b (diff)
Imported Debian patch 2.0.10-1debian/2.0.10-1
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.