summaryrefslogtreecommitdiff
path: root/qpid/python/examples/direct
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-12-05 15:19:45 +0000
committerGordon Sim <gsim@apache.org>2007-12-05 15:19:45 +0000
commit387a53a7dd18dd0bd3dd4a36b2a600cfbd60f249 (patch)
tree94ea297ec735e0e3fd6598eaf08ecc3be70e38b7 /qpid/python/examples/direct
parentb95f79c2f01db4aff1124522d6655eb745079f29 (diff)
downloadqpid-python-387a53a7dd18dd0bd3dd4a36b2a600cfbd60f249.tar.gz
Updates to examples from jonathan.robie@redhat.com
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/examples/direct')
-rw-r--r--qpid/python/examples/direct/config_direct_exchange.py4
-rw-r--r--qpid/python/examples/direct/direct_consumer.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/qpid/python/examples/direct/config_direct_exchange.py b/qpid/python/examples/direct/config_direct_exchange.py
index 45af6f63b9..e64ad678b8 100644
--- a/qpid/python/examples/direct/config_direct_exchange.py
+++ b/qpid/python/examples/direct/config_direct_exchange.py
@@ -49,9 +49,5 @@ session.queue_bind(exchange="amq.direct", queue="message_queue", routing_key="ro
#----- Cleanup ---------------------------------------------
-# Clean up before exiting so there are no open threads.
-#
-# Close Channel 1.
-# Close the connection using Channel 0, which is used for all connection methods.
session.session_close()
diff --git a/qpid/python/examples/direct/direct_consumer.py b/qpid/python/examples/direct/direct_consumer.py
index 4e50dfbc2a..38b1ba30a0 100644
--- a/qpid/python/examples/direct/direct_consumer.py
+++ b/qpid/python/examples/direct/direct_consumer.py
@@ -72,4 +72,4 @@ message.complete(cumulative=True)
# Clean up before exiting so there are no open threads.
#
-# session.session_close()
+session.session_close()