0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

Merge branch 'maint'

* maint:
  crash when closing an ypipe -- fixed
This commit is contained in:
Martin Sustrik 2010-09-28 07:51:59 +02:00
commit 6715f9b185

View File

@ -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.