diff options
author | Alan Conway <aconway@apache.org> | 2008-05-13 20:38:21 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-05-13 20:38:21 +0000 |
commit | c36a80f0b03bea42bca570e994d08613b08fd6dd (patch) | |
tree | e592c4a67829873329fc67e8768d279dc88cbba3 /cpp/src/qpid/client/Dispatcher.cpp | |
parent | 715b3ab46cf6f0f8b3e16c492c62e0af418e11f4 (diff) | |
download | qpid-python-c36a80f0b03bea42bca570e994d08613b08fd6dd.tar.gz |
From Jonathan Robie:
https://issues.apache.org/jira/browse/QPID-1056:
Python examples for the xml exchange.
https://issues.apache.org/jira/browse/QPID-1057
Fixes to the XmlExchange.cpp that prevent it from crashing the broker
when used with python clients that don't send application header
properties
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Dispatcher.cpp')
-rw-r--r-- | cpp/src/qpid/client/Dispatcher.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp index 37b37d9077..2bbe5a122f 100644 --- a/cpp/src/qpid/client/Dispatcher.cpp +++ b/cpp/src/qpid/client/Dispatcher.cpp @@ -88,10 +88,12 @@ void Dispatcher::run() } } } - } catch (const ClosedException&) { - //ignore it and return + session.sync(); // Make sure all our acks are received before returning. + } + catch (const ClosedException&) {} //ignore it and return + catch (const std::exception& e) { + QPID_LOG(error, "Exception in client dispatch thread: " << e.what()); } - session.sync(); // Make sure all our acks are received before returning. } void Dispatcher::stop() |