diff options
author | Gordon Sim <gsim@apache.org> | 2010-01-27 10:42:19 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-01-27 10:42:19 +0000 |
commit | f13dceb97198486cd9bd9574babac6b39d05b1a6 (patch) | |
tree | 3e875358e2ba2a49fb7a27815c22a675e4f2e45b /cpp/examples/messaging/queue_receiver.cpp | |
parent | c5f105c31896a42c4a192b9585016aa92285e6ff (diff) | |
download | qpid-python-f13dceb97198486cd9bd9574babac6b39d05b1a6.tar.gz |
QPID-664: change cancel() to close() for consistency
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903599 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/queue_receiver.cpp')
-rw-r--r-- | cpp/examples/messaging/queue_receiver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/examples/messaging/queue_receiver.cpp b/cpp/examples/messaging/queue_receiver.cpp index 40f863eb30..058a4e19ae 100644 --- a/cpp/examples/messaging/queue_receiver.cpp +++ b/cpp/examples/messaging/queue_receiver.cpp @@ -42,8 +42,8 @@ int main(int argc, char** argv) { std::cout << "Message: " << message.getContent() << std::endl; session.acknowledge(); if (message.getContent() == "That's all, folks!") { - std::cout << "Cancelling receiver" << std::endl; - receiver.cancel(); + std::cout << "Closing receiver" << std::endl; + receiver.close(); break; } } |