summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/queue_receiver.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-01-27 10:42:19 +0000
committerGordon Sim <gsim@apache.org>2010-01-27 10:42:19 +0000
commitf13dceb97198486cd9bd9574babac6b39d05b1a6 (patch)
tree3e875358e2ba2a49fb7a27815c22a675e4f2e45b /cpp/examples/messaging/queue_receiver.cpp
parentc5f105c31896a42c4a192b9585016aa92285e6ff (diff)
downloadqpid-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.cpp4
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;
}
}