summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-13 19:33:43 +0000
committerAlan Conway <aconway@apache.org>2008-05-13 19:33:43 +0000
commita541665a2ea11635c16b06c6730aafc70d3ddae4 (patch)
tree1b49c9540bed0c213a2d6b14aa88640e89df2014
parent6df0526d0777fa4ab7d94b01bce87b6199085d51 (diff)
downloadqpid-python-a541665a2ea11635c16b06c6730aafc70d3ddae4.tar.gz
Added sync() to ensure all acks are receivd before exiting the Dispatcher loop.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655983 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/client/Dispatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp
index 68e799918c..37b37d9077 100644
--- a/cpp/src/qpid/client/Dispatcher.cpp
+++ b/cpp/src/qpid/client/Dispatcher.cpp
@@ -91,6 +91,7 @@ void Dispatcher::run()
} catch (const ClosedException&) {
//ignore it and return
}
+ session.sync(); // Make sure all our acks are received before returning.
}
void Dispatcher::stop()