diff options
Diffstat (limited to 'cpp/src/tests/BrokerFixture.h')
-rw-r--r-- | cpp/src/tests/BrokerFixture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/BrokerFixture.h b/cpp/src/tests/BrokerFixture.h index f56a925b81..5eb6858491 100644 --- a/cpp/src/tests/BrokerFixture.h +++ b/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; |