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 | 4d27f50748e18ea40cd3a914bc5b53c0c892eaf4 (patch) | |
tree | 10596ecd01467544dee29058f0901a7cfa022424 /qpid/cpp/examples/messaging/topic_receiver.cpp | |
parent | 03045c0091b2e2b704b53c012d9d791569186c3e (diff) | |
download | qpid-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.cpp | 4 |
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; } } |