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 | f2904de50ed4dbb067cb8510841843d5c5cc2703 (patch) | |
| tree | ca917c17494145d398860064bc962963c7f4706b | |
| parent | 9617dce00b2cabbaf5b5ada6da53fc4193dfe17f (diff) | |
| download | qpid-python-f2904de50ed4dbb067cb8510841843d5c5cc2703.tar.gz | |
Protect close method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@825869 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/src/qpid/client/Connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/Connection.cpp b/qpid/cpp/src/qpid/client/Connection.cpp index 6f2fc2262c..ae1cfa5815 100644 --- a/qpid/cpp/src/qpid/client/Connection.cpp +++ b/qpid/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() { |
