summaryrefslogtreecommitdiff
path: root/python/qpid/driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/driver.py')
-rw-r--r--python/qpid/driver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/driver.py b/python/qpid/driver.py
index 03ba85aa39..2eef9db06c 100644
--- a/python/qpid/driver.py
+++ b/python/qpid/driver.py
@@ -560,6 +560,8 @@ class Driver:
self.delete(sst, _snd.name, do_unlink)
else:
do_unlink()
+ elif not snd.linked and snd.closing and not snd.closed:
+ snd.closed = True
def link_in(self, rcv):
sst = self._attachments.get(rcv.session)
@@ -633,6 +635,8 @@ class Driver:
else:
sst.write_cmd(MessageCancel(_rcv.destination), do_unlink)
_rcv.canceled = True
+ elif not rcv.linked and rcv.closing and not rcv.closed:
+ rcv.closed = True
POLICIES = Values("always", "sender", "receiver", "never")