diff options
| author | Gordon Sim <gsim@apache.org> | 2013-10-15 12:41:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-10-15 12:41:32 +0000 |
| commit | 7c2e365a2a34f4e65e3af9de056fdd18c830f676 (patch) | |
| tree | 9e759dc04d8bd046fe72bc23f4fe320fd06344fc /qpid/cpp/src | |
| parent | 97f41b50c52bd40de12f7ceb8eabc3fc7669b727 (diff) | |
| download | qpid-python-7c2e365a2a34f4e65e3af9de056fdd18c830f676.tar.gz | |
QPID-5227: correct setting of redelivered flag
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532304 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Message.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/Message.h b/qpid/cpp/src/qpid/broker/Message.h index 823207f10c..fdc919242e 100644 --- a/qpid/cpp/src/qpid/broker/Message.h +++ b/qpid/cpp/src/qpid/broker/Message.h @@ -83,7 +83,7 @@ public: QPID_BROKER_EXTERN Message(); QPID_BROKER_EXTERN ~Message(); - bool isRedelivered() const { return deliveryCount; } + bool isRedelivered() const { return deliveryCount > 0; } void deliver() { ++deliveryCount; } void undeliver() { --deliveryCount; } int getDeliveryCount() const { return deliveryCount; } |
