diff options
Diffstat (limited to 'cpp/src/qpid/client/amqp0_10/SessionImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/SessionImpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/SessionImpl.cpp b/cpp/src/qpid/client/amqp0_10/SessionImpl.cpp index 1086146b0d..6d98527627 100644 --- a/cpp/src/qpid/client/amqp0_10/SessionImpl.cpp +++ b/cpp/src/qpid/client/amqp0_10/SessionImpl.cpp @@ -97,7 +97,7 @@ void SessionImpl::acknowledge(bool sync_) //message may be redelivered; i.e. the application cannot delete //any state necessary for preventing reprocessing of the message execute<Acknowledge>(); - if (sync_) sync(true); + sync(sync_); } void SessionImpl::reject(qpid::messaging::Message& m) @@ -433,6 +433,8 @@ void SessionImpl::syncImpl(bool block) { if (block) session.sync(); else session.flush(); + //cleanup unconfirmed accept records: + incoming.pendingAccept(); } void SessionImpl::commitImpl() |
