summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()