From 8759258a3eec5122762fad021966fab298b6e40d Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 29 Aug 2014 13:16:05 +0200 Subject: [PATCH] Channel::get() and Channel::purgeQueue() methods always reported an error, even while there was no error --- src/channelimpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channelimpl.cpp b/src/channelimpl.cpp index 4b49942..4490176 100644 --- a/src/channelimpl.cpp +++ b/src/channelimpl.cpp @@ -361,7 +361,7 @@ DeferredDelete &ChannelImpl::purgeQueue(const std::string &name) QueuePurgeFrame frame(_id, name, false); // send the frame, and create deferred object - auto *deferred = new DeferredDelete(send(frame)); + auto *deferred = new DeferredDelete(!send(frame)); // push to list push(deferred); @@ -582,7 +582,7 @@ DeferredGet &ChannelImpl::get(const std::string &queue, int flags) BasicGetFrame frame(_id, queue, flags & noack); // send the frame, and create deferred object - auto *deferred = new DeferredGet(this, send(frame)); + auto *deferred = new DeferredGet(this, !send(frame)); // push to list push(deferred);