diff options
author | Dhammika Pathirana <dhammika@gmail.com> | 2010-09-28 07:46:17 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-28 07:46:17 +0200 |
commit | c1deb226f4d1bc94c158c050088813aae96775e9 (patch) | |
tree | b2af9635f9f390d97edb13e5b7963ccc6ebfb85c | |
parent | f61921d09679c4bed15204ec4e55d1c7313e3f6a (diff) |
crash when closing an ypipe -- fixed
-rw-r--r-- | src/ypipe.hpp | 2 |
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. |