summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-09-23 14:23:50 +0000
committerGordon Sim <gsim@apache.org>2011-09-23 14:23:50 +0000
commit9faf0f9fd6ceb3b727e4db511a6d8a3584e54ba1 (patch)
tree15eae7322f647884b0747bf89308013cec5f13bb /qpid/cpp/src
parentf325cfba9b0ed36908f95c0ee4104647de772bfa (diff)
downloadqpid-python-9faf0f9fd6ceb3b727e4db511a6d8a3584e54ba1.tar.gz
QPID-3502: Ensure accepts are sent when required for asynchronously completed messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1174800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/SessionState.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/broker/SessionState.cpp b/qpid/cpp/src/qpid/broker/SessionState.cpp
index 742dbe9be8..ddd6ae3f5b 100644
--- a/qpid/cpp/src/qpid/broker/SessionState.cpp
+++ b/qpid/cpp/src/qpid/broker/SessionState.cpp
@@ -346,10 +346,8 @@ void SessionState::completeRcvMsg(SequenceNumber id,
}
// if the sender has requested immediate notification of the completion...
- if (requiresSync) {
+ if (requiresSync || callSendCompletion) {
sendAcceptAndCompletion();
- } else if (callSendCompletion) {
- sendCompletion();
}
}