From 9faf0f9fd6ceb3b727e4db511a6d8a3584e54ba1 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 23 Sep 2011 14:23:50 +0000 Subject: 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 --- qpid/cpp/src/qpid/broker/SessionState.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qpid/cpp') 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(); } } -- cgit v1.2.1