summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-07-01 19:23:43 +0000
committerAlan Conway <aconway@apache.org>2010-07-01 19:23:43 +0000
commitaba3a9bfc56a901f9450f8bcd448508543585b39 (patch)
tree174868ec1aef30a3f6e86ecbf0783b30fc14325e /cpp/src/qpid/cluster/Connection.cpp
parent5f36276fe8a665c587dcc1f2d49f0adfb47984e7 (diff)
downloadqpid-python-aba3a9bfc56a901f9450f8bcd448508543585b39.tar.gz
Fix sporadic cluster core on exit.
Fix a race condition that allows a cluster::Connection to be deleted via the Cluster's local map before it was fully initialized. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r--cpp/src/qpid/cluster/Connection.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp
index d4f0a06eaf..f6cccf06a2 100644
--- a/cpp/src/qpid/cluster/Connection.cpp
+++ b/cpp/src/qpid/cluster/Connection.cpp
@@ -95,7 +95,6 @@ Connection::Connection(Cluster& c, sys::ConnectionOutputHandler& out,
updateIn(c.getUpdateReceiver()),
secureConnection(0)
{
- cluster.addLocalConnection(this);
if (isLocalClient()) {
giveReadCredit(cluster.getSettings().readMax); // Flow control
// Delay adding the connection to the management map until announce()