summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/DeliveryRecord.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/DeliveryRecord.cpp b/cpp/src/qpid/broker/DeliveryRecord.cpp
index 850f97cba9..176209cd4d 100644
--- a/cpp/src/qpid/broker/DeliveryRecord.cpp
+++ b/cpp/src/qpid/broker/DeliveryRecord.cpp
@@ -96,7 +96,7 @@ void DeliveryRecord::redeliver(SemanticState* const session) {
void DeliveryRecord::requeue() const
{
- if (!confirmed) {
+ if (acquired && !confirmed) {
msg.payload->redeliver();
queue->requeue(msg);
}