summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Dispatcher.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-14 19:35:33 +0000
committerAlan Conway <aconway@apache.org>2008-10-14 19:35:33 +0000
commit56fb1f26a04a9ba2b6af40c6933f8dcc79143772 (patch)
tree97b5824875315d628587fb66186a5300658bbf58 /cpp/src/qpid/client/Dispatcher.cpp
parentb17ea7f64cf3eb42c4614aa57508a7aaca132807 (diff)
downloadqpid-python-56fb1f26a04a9ba2b6af40c6933f8dcc79143772.tar.gz
Minor cleanup for client failover.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@704637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Dispatcher.cpp')
-rw-r--r--cpp/src/qpid/client/Dispatcher.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp
index 08905bc96c..fd9d8a8ad1 100644
--- a/cpp/src/qpid/client/Dispatcher.cpp
+++ b/cpp/src/qpid/client/Dispatcher.cpp
@@ -38,7 +38,7 @@ namespace qpid {
namespace client {
Subscriber::Subscriber(const Session& s, MessageListener* l, AckPolicy a)
- : session(s), listener(l), autoAck(a) {}
+ : session(s), listener(l), autoAck(a) {}
void Subscriber::received(Message& msg)
{
@@ -96,18 +96,12 @@ void Dispatcher::run()
}
catch (const ClosedException& e)
{
- QPID_LOG(debug, "Ignored exception in client dispatch thread: " << e.what());
+ QPID_LOG(debug, "Ignored exception in client dispatch thread: " << e.what());
} //ignore it and return
catch (const std::exception& e) {
QPID_LOG(error, "Exception in client dispatch thread: " << e.what());
- if ( failoverHandler )
- {
- failoverHandler();
- }
- else
- {
- QPID_LOG(info, "No dispatcher failover handler registered.");
- }
+ if ( failoverHandler )
+ failoverHandler();
}
}