summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/messaging/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/examples/messaging/client.cpp')
-rw-r--r--qpid/cpp/examples/messaging/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/client.cpp b/qpid/cpp/examples/messaging/client.cpp
index d695dd9ada..44720ef3ce 100644
--- a/qpid/cpp/examples/messaging/client.cpp
+++ b/qpid/cpp/examples/messaging/client.cpp
@@ -7,9 +7,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -66,6 +66,7 @@ int main(int argc, char** argv) {
sender.send(request);
Message response = receiver.fetch();
std::cout << request.getContentObject() << " -> " << response.getContentObject() << std::endl;
+ session.acknowledge(response);
}
connection.close();
return 0;