From b79053b6e8211121166cededc8aa713607d40308 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 24 Nov 2008 18:37:37 +0000 Subject: 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 --- cpp/src/qpid/client/SessionImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/client/SessionImpl.cpp') 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 c = connectionWeak.lock(); if (c) { - c->expand(frame.encodedSize(), canBlock); channel.handle(frame); + c->expand(frame.encodedSize(), canBlock); } } -- cgit v1.2.1