summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/client.py2
-rw-r--r--python/qpid/reference.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/client.py b/python/qpid/client.py
index e14166c885..f6a540c7ec 100644
--- a/python/qpid/client.py
+++ b/python/qpid/client.py
@@ -111,6 +111,8 @@ class ClientDelegate(Delegate):
self.client.started.set()
def message_transfer(self, ch, msg):
+ if isinstance(msg.body, ReferenceId):
+ msg.reference = ch.references.get(msg.body.id)
self.client.queue(msg.destination).put(msg)
def message_open(self, ch, msg):
diff --git a/python/qpid/reference.py b/python/qpid/reference.py
index d357560390..48ecb67656 100644
--- a/python/qpid/reference.py
+++ b/python/qpid/reference.py
@@ -111,7 +111,7 @@ class References:
self.get(id).close()
self.lock.acquire()
try:
- del map[id]
+ self.map.pop(id)
finally:
self.lock.release()