Commit c1deb226 authored by Dhammika Pathirana's avatar Dhammika Pathirana Committed by Martin Sustrik

crash when closing an ypipe -- fixed

parent f61921d0
...@@ -127,7 +127,7 @@ namespace zmq ...@@ -127,7 +127,7 @@ namespace zmq
inline bool check_read () inline bool check_read ()
{ {
// Was the value prefetched already? If so, return. // Was the value prefetched already? If so, return.
if (&queue.front () != r) if (&queue.front () != r && r)
return true; return true;
// There's no prefetched value, so let us prefetch more values. // There's no prefetched value, so let us prefetch more values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment