diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2009-10-16 12:56:46 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2009-10-16 12:56:46 +0000 |
commit | 40a33fa993468de77512ddda55ebbdaa037808d4 (patch) | |
tree | d57491e57180c343de60a86183775432da7ef7c9 | |
parent | da42ee975c936e60348b1f3f43fa345ca31e7606 (diff) | |
download | qpid-python-40a33fa993468de77512ddda55ebbdaa037808d4.tar.gz |
Protect close method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825869 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index 6f2fc2262c..ae1cfa5815 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -148,7 +148,8 @@ void Connection::resume(Session& session) { } void Connection::close() { - impl->close(); + if ( impl ) + impl->close(); } std::vector<Url> Connection::getKnownBrokers() { |