diff options
author | Gordon Sim <gsim@apache.org> | 2010-06-24 11:34:18 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-06-24 11:34:18 +0000 |
commit | 4d7371ec8515371d9c547052a91d382ff6400d12 (patch) | |
tree | 77f636173eb77802275e193dc53f602bcb45590d /cpp/examples/messaging | |
parent | 7d890288c04e114499ebf5fd236d4afe12e23a78 (diff) | |
download | qpid-python-4d7371ec8515371d9c547052a91d382ff6400d12.tar.gz |
Ensure spout example waits for all messages to be sent before detaching session
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging')
-rw-r--r-- | cpp/examples/messaging/spout.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/examples/messaging/spout.cpp b/cpp/examples/messaging/spout.cpp index e100560739..57b955c1de 100644 --- a/cpp/examples/messaging/spout.cpp +++ b/cpp/examples/messaging/spout.cpp @@ -161,6 +161,7 @@ int main(int argc, char** argv) message.getProperties()["spout-id"] = spoutid.str(); sender.send(message); } + session.sync(); connection.close(); return 0; } catch(const std::exception& error) { |