summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDhammika Pathirana <dhammika@gmail.com>2010-09-28 07:46:17 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-28 07:46:17 +0200
commitc1deb226f4d1bc94c158c050088813aae96775e9 (patch)
treeb2af9635f9f390d97edb13e5b7963ccc6ebfb85c /src
parentf61921d09679c4bed15204ec4e55d1c7313e3f6a (diff)
crash when closing an ypipe -- fixed
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.