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 | 4bed8993507c1a9e89a7cc04547faf409356e347 (patch) | |
tree | 1ab67025477534a02ae806bcd1a693982fe4e87b /qpid/cpp/src/qpid/client/Dispatcher.cpp | |
parent | f3f2a5d43a0b23837d87d33e5415c9b131b5457d (diff) | |
download | qpid-python-4bed8993507c1a9e89a7cc04547faf409356e347.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@656005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/client/Dispatcher.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/client/Dispatcher.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/client/Dispatcher.cpp b/qpid/cpp/src/qpid/client/Dispatcher.cpp index 37b37d9077..2bbe5a122f 100644 --- a/qpid/cpp/src/qpid/client/Dispatcher.cpp +++ b/qpid/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() |