diff options
Diffstat (limited to 'cpp/examples/messaging/drain.cpp')
-rw-r--r-- | cpp/examples/messaging/drain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp index 2bd9fcdac8..3834aa3dfd 100644 --- a/cpp/examples/messaging/drain.cpp +++ b/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; |