diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 23:54:53 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 23:54:53 +0000 |
| commit | e43d8694ec22b236e88c236b760d0090d7088b49 (patch) | |
| tree | f24a016c60566f760fbeb0015be1dbbbc487f5fd /qpid/python | |
| parent | e94bc23df7b9d7a1612c27d8d4f3e2739fd151c8 (diff) | |
| download | qpid-python-e43d8694ec22b236e88c236b760d0090d7088b49.tar.gz | |
candidate fix for testReconnect
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/messaging/driver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py index 058313ff86..241bed4587 100644 --- a/qpid/python/qpid/messaging/driver.py +++ b/qpid/python/qpid/messaging/driver.py @@ -779,7 +779,7 @@ class Engine: sst = self._attachments.get(lnk.session) _lnk = self._attachments.get(lnk) - if _lnk is None and not lnk.closing and not lnk.closed: + if _lnk is None and not lnk.closed: _lnk = Attachment(lnk) _lnk.closing = False dir.init_link(sst, lnk, _lnk) @@ -812,7 +812,7 @@ class Engine: dir.do_unlink(sst, lnk, _lnk, unlinked) _lnk.closing = True elif not lnk.linked and lnk.closing and not lnk.closed: - lnk.closed = True + if lnk.error: lnk.closed = True def parse_address(self, lnk, dir, addr): if addr is None: |
