Commit bef9a41b authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #472 from jgm-radez/master

Issue 468
parents 01b9bc36 b8d5d3fa
......@@ -70,8 +70,8 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
unique = subscriptions.add (data + 1, size - 1, pipe_);
// If the subscription is not a duplicate store it so that it can be
// passed to used on next recv call.
if (options.type == ZMQ_XPUB && (unique || verbose))
// passed to used on next recv call. (Unsubscribe is not verbose.)
if (options.type == ZMQ_XPUB && (unique || (*data && verbose)))
pending.push_back (blob_t (data, size));
}
......
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