Skip to content
Snippets Groups Projects
Commit 35b289a5 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7432: Removed superfluous close() calls, as connection.close() catches everything

parent 985acc4f
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,8 @@ namespace LOFAR {
try {
// Make sure all requests are finished
itsReceiver.close()
// connection.close() closes all senders, receivers, and sessions as well.
itsConnection.close();
} catch(const qpid::types::Exception &ex) {
LOG_FATAL_STR("Exception in destructor, cannot guarantee message delivery: " << ex.what());
......@@ -123,7 +124,8 @@ namespace LOFAR {
try {
// Make sure all requests are finished
itsSender.close();
// connection.close() closes all senders, receivers, and sessions as well.
itsConnection.close();
} catch(const qpid::types::Exception &ex) {
LOG_FATAL_STR("Exception in destructor, cannot guarantee message delivery: " << ex.what());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment