From c1deb226f4d1bc94c158c050088813aae96775e9 Mon Sep 17 00:00:00 2001 From: Dhammika Pathirana Date: Tue, 28 Sep 2010 07:46:17 +0200 Subject: crash when closing an ypipe -- fixed --- src/ypipe.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3