From 61647950e1c4e6b1efb0a1b3f3b220783680103f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 21 Apr 2008 14:37:03 +0000 Subject: QPID-920: send message-accept for acks (as well as completion) * AckPolicy now maintains a set of transfered messages for cumulative accepts git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650159 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Dispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/client/Dispatcher.cpp') diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp index cc67701748..68e799918c 100644 --- a/cpp/src/qpid/client/Dispatcher.cpp +++ b/cpp/src/qpid/client/Dispatcher.cpp @@ -43,7 +43,7 @@ void Subscriber::received(Message& msg) { if (listener) { listener->received(msg); - autoAck.ack(msg); + autoAck.ack(msg, session); } } @@ -72,7 +72,7 @@ void Dispatcher::run() Mutex::ScopedUnlock u(lock); FrameSet::shared_ptr content = queue->pop(); if (content->isA()) { - Message msg(*content, session); + Message msg(*content); Subscriber::shared_ptr listener = find(msg.getDestination()); if (!listener) { QPID_LOG(error, "No listener found for destination " << msg.getDestination()); -- cgit v1.2.1