diff options
| author | Gordon Sim <gsim@apache.org> | 2008-01-09 11:54:51 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-01-09 11:54:51 +0000 |
| commit | e5cffa7ed59fff22e78e92bb070c5ba3fffce14f (patch) | |
| tree | 1e0ee46dd925d56ddda2bb75f2be3233dfc22f1d /qpid/cpp/src/tests/txtest.cpp | |
| parent | 5e9ff2b59e1f1cbbcaa46e56381b0d6dc7413a68 (diff) | |
| download | qpid-python-e5cffa7ed59fff22e78e92bb070c5ba3fffce14f.tar.gz | |
Extra level of exception handling to prevent core dumps.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@610354 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/txtest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/txtest.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/txtest.cpp b/qpid/cpp/src/tests/txtest.cpp index 17aef8826b..b27f75fc92 100644 --- a/qpid/cpp/src/tests/txtest.cpp +++ b/qpid/cpp/src/tests/txtest.cpp @@ -28,6 +28,7 @@ #include <algorithm> #include <iostream> +#include <memory> #include <sstream> #include <vector> @@ -112,8 +113,12 @@ struct Client ~Client() { - session.close(); - connection.close(); + try{ + session.close(); + connection.close(); + } catch(const std::exception& e) { + std::cout << e.what() << std::endl; + } } }; |
