mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 18:38:00 +08:00
Merge pull request #64 from hintjens/master
Backported fix for LIBZMQ-472
This commit is contained in:
commit
12f3f8a7f6
@ -148,6 +148,10 @@ namespace zmq
|
||||
// False is returned if the decoder has encountered an error.
|
||||
bool stalled ()
|
||||
{
|
||||
// Check whether there was decoding error.
|
||||
if (unlikely (static_cast <T*> (this)->next == NULL))
|
||||
return false;
|
||||
|
||||
while (!to_read) {
|
||||
if (!(static_cast <T*> (this)->*next) ()) {
|
||||
if (unlikely (!(static_cast <T*> (this)->next)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user