Commit 6715f9b1 authored by Martin Sustrik's avatar Martin Sustrik

Merge branch 'maint'

* maint:
  crash when closing an ypipe -- fixed
parents 16c3884a c1deb226
...@@ -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