From b8d5d3fa695c5026c2af36daa8e357978ab135ac Mon Sep 17 00:00:00 2001 From: John Muehlhausen Date: Thu, 15 Nov 2012 15:30:30 -0600 Subject: [PATCH] Issue 468 XPUB "verbose" mode excludes unsubscriptions --- src/xpub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpub.cpp b/src/xpub.cpp index c4c5934a..e724a2de 100644 --- a/src/xpub.cpp +++ b/src/xpub.cpp @@ -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)); }