diff options
author | Gordon Sim <gsim@apache.org> | 2010-04-17 23:29:08 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-04-17 23:29:08 +0000 |
commit | 8064f03b9b1f4b106be1dc9b0f2a3e3f5b555e08 (patch) | |
tree | 3c6e852e4e7d761f128f8b38bb5b6e9afca329bf /cpp/src/qpid/client/Connection.cpp | |
parent | ef97372c04344fe0c0d7234263c25b31c4ed854a (diff) | |
download | qpid-python-8064f03b9b1f4b106be1dc9b0f2a3e3f5b555e08.tar.gz |
An alternative attempt at ensuring ConnectionImpl is not deleted before IO thread is finished with it.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index d8ffb6d9e1..6d2fd1d760 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -122,7 +122,7 @@ void Connection::open(const ConnectionSettings& settings) if (isOpen()) throw Exception(QPID_MSG("Connection::open() was already called")); - impl = boost::shared_ptr<ConnectionImpl>(new ConnectionImpl(version, settings)); + impl = ConnectionImpl::create(version, settings); impl->open(); if ( failureCallback ) impl->registerFailureCallback ( failureCallback ); |