summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/messaging/drain.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/drain.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/drain.cpp')
-rw-r--r--qpid/cpp/examples/messaging/drain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/examples/messaging/drain.cpp b/qpid/cpp/examples/messaging/drain.cpp
index 2bd9fcdac8..3834aa3dfd 100644
--- a/qpid/cpp/examples/messaging/drain.cpp
+++ b/qpid/cpp/examples/messaging/drain.cpp
@@ -111,7 +111,7 @@ int main(int argc, char** argv)
std::cout << "')" << std::endl;
session.acknowledge();
}
- receiver.cancel();
+ receiver.close();
session.close();
connection.close();
return 0;