From a541665a2ea11635c16b06c6730aafc70d3ddae4 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 13 May 2008 19:33:43 +0000 Subject: 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 --- cpp/src/qpid/client/Dispatcher.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/qpid/client') 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() -- cgit v1.2.1