diff options
author | Gordon Sim <gsim@apache.org> | 2010-04-06 14:52:47 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-04-06 14:52:47 +0000 |
commit | 8fddccd7efb73cd25376f5492ddb09ad7fa09e3b (patch) | |
tree | 2c2e7045eb1a4733fbb24a4f7106e96dca945ae0 /cpp/examples/messaging/queue_sender.cpp | |
parent | 48d21770c0c93551180043ddf27b1b7178382a4a (diff) | |
download | qpid-python-8fddccd7efb73cd25376f5492ddb09ad7fa09e3b.tar.gz |
QPID-664: added param to control synchronous send and acknowledge
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/queue_sender.cpp')
-rw-r--r-- | cpp/examples/messaging/queue_sender.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/examples/messaging/queue_sender.cpp b/cpp/examples/messaging/queue_sender.cpp index 0d86f024b3..f7f0e9bf6d 100644 --- a/cpp/examples/messaging/queue_sender.cpp +++ b/cpp/examples/messaging/queue_sender.cpp @@ -48,8 +48,7 @@ int main(int argc, char** argv) { } // And send a final message to indicate termination. - sender.send(Message("That's all, folks!")); - session.sync(); + sender.send(Message("That's all, folks!"), true); return 0; } catch(const std::exception& error) { std::cout << error.what() << std::endl; |