From 4d27f50748e18ea40cd3a914bc5b53c0c892eaf4 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 27 Jan 2010 10:42:19 +0000 Subject: QPID-664: change cancel() to close() for consistency git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@903599 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/topic_receiver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/examples/messaging/topic_receiver.cpp') diff --git a/qpid/cpp/examples/messaging/topic_receiver.cpp b/qpid/cpp/examples/messaging/topic_receiver.cpp index 45ab9448db..321231f93d 100644 --- a/qpid/cpp/examples/messaging/topic_receiver.cpp +++ b/qpid/cpp/examples/messaging/topic_receiver.cpp @@ -42,8 +42,8 @@ int main(int argc, char** argv) { Message message = receiver.fetch(); std::cout << "Message: " << message.getContent() << std::endl; if (message.getContent() == "That's all, folks!") { - std::cout << "Cancelling receiver" << std::endl; - receiver.cancel(); + std::cout << "Closing receiver" << std::endl; + receiver.close(); break; } } -- cgit v1.2.1