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:
commit
6715f9b185
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user