summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SessionImpl.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-24 18:37:37 +0000
committerGordon Sim <gsim@apache.org>2008-11-24 18:37:37 +0000
commitb79053b6e8211121166cededc8aa713607d40308 (patch)
treede80139dab6e64b49d5a9656a4387eb38cfaa89e /cpp/src/qpid/client/SessionImpl.cpp
parentd5b47b5116048db0f90f63a9ff23433ff0c1bc04 (diff)
downloadqpid-python-b79053b6e8211121166cededc8aa713607d40308.tar.gz
QPID-1478: ensure concurrent publishers work correctly (as well as reported assertion, the test uncovered a potential deadlock due to bounds being expanded before frames were added to queue).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720251 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index cf71d4f4a5..ab8c1bddb8 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -451,8 +451,8 @@ void SessionImpl::sendFrame(AMQFrame& frame, bool canBlock)
{
boost::shared_ptr<ConnectionImpl> c = connectionWeak.lock();
if (c) {
- c->expand(frame.encodedSize(), canBlock);
channel.handle(frame);
+ c->expand(frame.encodedSize(), canBlock);
}
}