diff options
| author | Alan Conway <aconway@apache.org> | 2009-10-27 17:55:44 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-10-27 17:55:44 +0000 |
| commit | a77294d7570a35513fcee77f2500ff3f023fc5d8 (patch) | |
| tree | 2c3be2642f7f8bdf13886f97d07009357c33f092 /qpid/cpp/src/tests/BrokerFixture.h | |
| parent | 9ae1fd0253cc08e8b324bc93cb007f644b4a2b8a (diff) | |
| download | qpid-python-a77294d7570a35513fcee77f2500ff3f023fc5d8.tar.gz | |
Make Session::close and Connection::close no-throw
close() will often be called in destructors and so should not throw exceptions.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@830268 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
| -rw-r--r-- | qpid/cpp/src/tests/BrokerFixture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h index f56a925b81..5eb6858491 100644 --- a/qpid/cpp/src/tests/BrokerFixture.h +++ b/qpid/cpp/src/tests/BrokerFixture.h @@ -127,7 +127,7 @@ struct ClientT { : connection(settings), session(connection.newSession(name_)), subs(session), name(name_) {} ~ClientT() { close(); } - void close() { if (connection.isOpen()) { session.close(); connection.close(); } } + void close() { session.close(); connection.close(); } }; typedef ClientT<> Client; |
