summaryrefslogtreecommitdiff
path: root/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
commit02c87b9d824eb3932c7e70093c8e85ae71394b10 (patch)
treeca789ee6aa4d2aea830a46ec4648f0c36a52492c /cpp/src
parent51bbac914830ea8e614e0608d0c17fdd22c03b79 (diff)
downloadqpid-python-02c87b9d824eb3932c7e70093c8e85ae71394b10.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/qpid@1174800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/SessionState.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp
index 742dbe9be8..ddd6ae3f5b 100644
--- a/cpp/src/qpid/broker/SessionState.cpp
+++ b/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();
}
}