summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/messaging/topic_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
commit4d27f50748e18ea40cd3a914bc5b53c0c892eaf4 (patch)
tree10596ecd01467544dee29058f0901a7cfa022424 /qpid/cpp/examples/messaging/topic_receiver.cpp
parent03045c0091b2e2b704b53c012d9d791569186c3e (diff)
downloadqpid-python-4d27f50748e18ea40cd3a914bc5b53c0c892eaf4.tar.gz
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
Diffstat (limited to 'qpid/cpp/examples/messaging/topic_receiver.cpp')
-rw-r--r--qpid/cpp/examples/messaging/topic_receiver.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}