From 99227773f34d344a875941f9b940cc8dfd8b7576 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 9 Jan 2008 11:54:51 +0000 Subject: Extra level of exception handling to prevent core dumps. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@610354 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/txtest.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests/txtest.cpp') diff --git a/cpp/src/tests/txtest.cpp b/cpp/src/tests/txtest.cpp index 17aef8826b..b27f75fc92 100644 --- a/cpp/src/tests/txtest.cpp +++ b/cpp/src/tests/txtest.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -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; + } } }; -- cgit v1.2.1